in reply to Re: Extracting selected fields form file record
in thread Extracting selected fields form file record
my ($first,$second,undef,$third,undef,$fourth,undef,$fifth,undef,$sixth) = split / /, $line;
please also note that split operates on regexes, so /\s+/ might be what is really wanted.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extracting selected fields form file record
by soonix (Chancellor) on Feb 06, 2022 at 19:53 UTC | |
by LanX (Saint) on Feb 06, 2022 at 20:14 UTC |