in reply to Stripping a seemingly complicated comma-delimited file
while (<FILE_HANDLE>){ @items = split /,/; # do something with @items }
Or if you have the lines in an array use a foreach loop:
foreach ( @lines ){ # split in here }
The while statement you have shown stays true for as long as there is a new line, it does not move through the data.
-- iakobski
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Stripping a seemingly complicated comma-delimited file
by jamesSA (Initiate) on Jun 11, 2001 at 18:03 UTC | |
by virtualsue (Vicar) on Jun 11, 2001 at 18:21 UTC | |
by the_slycer (Chaplain) on Jun 11, 2001 at 18:22 UTC |