split is slower than the correct regex matching.
======================================== Message Received: May 26 2012, 10:59 AM From: "Dr.Ruud" <rvtol+use...@isolution.nl> To: beginners@perl.org Cc: Subject: Re: Help required to extract multiple text fields from a text string On 2012-05-25 22:51, Christopher Gray wrote: > I have a text file containing records. While I can extract single > sub-strings, I cannot extract multiple sub-strings. Try split, see perldoc -f split. while ( my $line= <$fh_in> ) { my @data= split ' ', $line; ....; } -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/