in reply to Re: taking sections out of a file and put it in an array
in thread taking sections out of a file and put it in an array
(inserted '^' and '$' to mark start and end)my @arr; while (<FILE>) { push @arr, $1 if /^\$FILES(.*?)\$$/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re(3): Inserting sections of a file into an array
by cjf-II (Monk) on Dec 06, 2002 at 09:03 UTC |