in reply to 'split'-ting headache
Should work, if you don't have spaces in your data. (remember that split(/ /) is different from split() or split(" ") - read perldoc -f split )@array = split (/ /, $line);
Update: this code assumes you have exactly one space between columns, adjust as needed.
-- Joost downtime n. The period during which a system is error-free and immune from user input.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: 'split'-ting headache
by Anonymous Monk on Jun 11, 2002 at 14:39 UTC | |
by jeffa (Bishop) on Jun 11, 2002 at 15:00 UTC |