in reply to Re: Regex Parsing
in thread Regex Parsing
my @array = (split/\n/, $data); my $firstmatch = $array[3]; my $secondmatch = $array[4];
But is this the best/fastes way. Got lots of files with this kind of data.
This happens over and over:
Open the file split the records parse this data insert it into db close file
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Regex Parsing
by dragonchild (Archbishop) on Mar 28, 2005 at 13:55 UTC | |
by cog (Parson) on Mar 28, 2005 at 16:28 UTC |