Help for this page

Select Code to Download


  1. or download this
      $/ = '>';
      # throw away first (junk) record
    ...
        $record =~ s{ \n }{}xmsg;
        process($record);
        }
    
  2. or download this
      while (defined(my $record = <$fh>) or ($! and die "reading: $!")) {
        chomp $record;  # remove $/ string
        $record =~ s{ \n }{}xmsg;
        process($record);
        }