Help for this page

Select Code to Download


  1. or download this
    use strict;
    open FILE, "</path/to/inputfile" or die "Blerch: $!\n";
    ...
    shift @lines;
    pop @lines;
    # @lines now contains the file contents without the first and last lin
    +es.
    
  2. or download this
    $line=~s/^#//;
    
  3. or download this
    $line=~s/^(.)/#$1/;