cens has asked for the wisdom of the Perl Monks concerning the following question:
to split up a pipe delimited list. Like this:($acc_num, $ofname,$junk,$olname,$junk2) = split /|/, $line, 5;
Instead of the expected results, I get the result of having each variable in the array being one digit of the AccountKey. I have never seen this before and understand that I can sub commas for pipes rather quickly, but I was hoping to see if anyone knew why pipes are so special in this context.AccountKey|Given|MiddleName1|Surname|GeoCity
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Splits and pipes
by bobn (Chaplain) on Sep 06, 2003 at 21:23 UTC | |
by cens (Novice) on Sep 06, 2003 at 21:26 UTC | |
by bobn (Chaplain) on Sep 06, 2003 at 21:30 UTC |