http://qs1969.pair.com?node_id=440728


in reply to Input record separator

If your data is consitant, just chuck the first one
use strict; open FILE,"data.txt" or die "could not open data.txt: $!\n"; # set seperator to ">" local $/ = ">"; # chuck first one my $junk = <FILE>; while(my $record = <FILE>){ chomp $record; # do important stuff }