Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
TIA.open(SDATA,">$file")||die "Could not open data file"; @filedata=<SDATA>; close(SDATA); foreach $line (@filedata){ chomp($line); #@sid=split m!/\d{8}/!,$line; #@sid=split m!,!,$line; foreach $nline (@sid){ do something .... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regular expression to extract 8 digit number from files
by demerphq (Chancellor) on Aug 16, 2002 at 11:08 UTC | |
by Anonymous Monk on Aug 16, 2002 at 11:47 UTC | |
by Anonymous Monk on Aug 16, 2002 at 12:03 UTC | |
|
Re: regular expression to extract 8 digit number from files
by Anonymous Monk on Aug 16, 2002 at 12:21 UTC | |
by demerphq (Chancellor) on Aug 18, 2002 at 16:52 UTC |