Changeset 8557


Ignore:
Timestamp:
10/03/09 04:00:52 (2 years ago)
Author:
Sewi
Message:

Fixed all test errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Document/Perl/Beginner.pm

    r8555 r8557  
    8282    my ( $self, $text ) = @_; 
    8383 
    84     # TODO: Change this back to undef: 
    85     $self->{error} = ''; 
     84    $self->{error} = undef; 
    8685 
    8786=item * 
     
    214213=cut 
    215214 
    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/ ) 
    217216        and ( length($4) > 0 ) 
    218217        and ( length($5) > 0 ) ) 
    219218    { 
    220         print STDERR join(',',map { "[[$_]]"; }($1,$2,$3,$4,$5,$6))."\n"; 
    221219        $self->_report("Using a | char in open without a | at the beginning or end is usually a typo."); 
    222220        return; 
     
    229227=cut 
    230228 
    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 ) { 
    232230        $self->_report("You can't use open to pipe to and from a command at the same time."); 
    233231        return; 
Note: See TracChangeset for help on using the changeset viewer.