Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

When 100% Code Coverage Backfires

by Ovid (Cardinal)
on Mar 26, 2007 at 12:06 UTC ( #606564=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ( @chunks > 1 && $chunks[-2] =~ s/$comment$// ) { 
        ...
    }
    
  2. or download this
      if ( @chunks > 1 && $chunks[-2] =~ s/$comment$// ) {
          pop @chunks;
      }
    
  3. or download this
      if ( @chunks > 1 ) {
          $chunks[-2] =~ s/$comment$//;   # XXX remove comment indicator
          pop @chunks;                    # XXX remove the comment
      }
    
  4. or download this
            my $split = Data::Record->new(
                {
                    split  => $comment,
    ...
                }
            );
            my @chunks = $split->records($line_of_sql);
    
  5. or download this
      if ( @chunks > 1 && $chunks[-2] =~ s/$comment$// ) {
          pop @chunks;
      }
    
  6. or download this
      if ( @chunks > 1 ) {
          $chunks[-2] =~ s/$comment$//;   # XXX remove comment indicator
          pop @chunks;                    # XXX remove the comment
      }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://606564]
Approved by xdg
Front-paged by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2022-08-15 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?