Help for this page

Select Code to Download


  1. or download this
    $/ = "From mailsnarf\n";
    while(defined(my $para = <$infile>)) {
      # ...
    }
    
  2. or download this
    while(defined(my $line = <$infile>)) {
      next if($line =~ /^From (\w+)$/ ... $line =~ /^From (\w+)$/);
      # ...
    }