Help for this page

Select Code to Download


  1. or download this
    my @newlines = grep{/\S/}@lines;  #move only lines that have 
                                      #a non whitespace char to the left
    or
    @lines = grep{/\S/}@lines;
    
  2. or download this
    while (<FH>) # update: was: while (my $line = <FH>)
                 # don't really need "my line" here
    ...
        next if /^\s*#/;   #skip comments, or whatever...
        blah, blah
    }