Help for this page

Select Code to Download


  1. or download this
    local $/='//';        #define record separator
    my @records = <$in>;  # read in all records
    chomp @records;       #get rid of trailing // from each record
    
  2. or download this
    local $/='//';
    while (my $record = <$in>) {
      chomp $record;   #remove // from end of line
      #... process the record ...
    }