Help for this page

Select Code to Download


  1. or download this
    my $file = '/path/to/file.txt';
    open(IN,"<$file") || die $!;
    read IN, my $html, -s $file;
    close(IN);
    $html =~ s/<!-- Begin -->(.*?)<!-- End -->/$1/s;
    
  2. or download this
    my $flag = 0;
    while (<FILE>) {
    ...
    
        process_line($_) if ($flag);
    }