Changeset 8557
- Timestamp:
- 10/03/09 04:00:52 (2 years ago)
- File:
-
- 1 edited
-
trunk/Padre/lib/Padre/Document/Perl/Beginner.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Document/Perl/Beginner.pm
r8555 r8557 82 82 my ( $self, $text ) = @_; 83 83 84 # TODO: Change this back to undef: 85 $self->{error} = ''; 84 $self->{error} = undef; 86 85 87 86 =item * … … 214 213 =cut 215 214 216 if ( ( $text =~ /^(.*?)open[\s\t\r\n]*\(?\$?\w+[\s\t\r\n]*(\,.+?)?[\s\t\r\n]*\,[\s\t\r\n]*?([\"\'])(.*?)\|(.*?)\ 2/ )215 if ( ( $text =~ /^(.*?)open[\s\t\r\n]*\(?\$?\w+[\s\t\r\n]*(\,.+?)?[\s\t\r\n]*\,[\s\t\r\n]*?([\"\'])(.*?)\|(.*?)\3/ ) 217 216 and ( length($4) > 0 ) 218 217 and ( length($5) > 0 ) ) 219 218 { 220 print STDERR join(',',map { "[[$_]]"; }($1,$2,$3,$4,$5,$6))."\n";221 219 $self->_report("Using a | char in open without a | at the beginning or end is usually a typo."); 222 220 return; … … 229 227 =cut 230 228 231 if ( $text =~ /^(.*?)open[\s\t\r\n]*\(?\$?\w+[\s\t\r\n]*\,(.+?\,)?([\"\'])\|.+?\|\ 2/s ) {229 if ( $text =~ /^(.*?)open[\s\t\r\n]*\(?\$?\w+[\s\t\r\n]*\,(.+?\,)?([\"\'])\|.+?\|\3/s ) { 232 230 $self->_report("You can't use open to pipe to and from a command at the same time."); 233 231 return;
Note: See TracChangeset
for help on using the changeset viewer.
