Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I was hoping to pull the fourth element of a single-space delimited data line with the code shown above. However I get the following error:my $start=(split(/ /,$data[146]),3);
But.... I was really hoping to do it in the way which was first mentioned, which is unfortunately deprecated, a smooth one-liner. Any thoughts on how to do this? I am certian that I must be missing the obvious. Thanks in advance for your wisdom.my @startline=split(/ /,$data[146]); my $start=$startline[3];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: implicit split to @_ is deprecated
by hardburn (Abbot) on Aug 29, 2003 at 16:58 UTC | |
by Anonymous Monk on Aug 29, 2003 at 17:05 UTC | |
Re: implicit split to @_ is deprecated
by tcf22 (Priest) on Aug 29, 2003 at 16:58 UTC | |
Re: implicit split to @_ is deprecated
by ajdelore (Pilgrim) on Aug 29, 2003 at 17:04 UTC | |
by Anonymous Monk on Aug 29, 2003 at 17:09 UTC | |
Re: implicit split to @_ is deprecated
by CombatSquirrel (Hermit) on Aug 29, 2003 at 17:18 UTC | |
by Anonymous Monk on Aug 29, 2003 at 19:07 UTC | |
by CombatSquirrel (Hermit) on Aug 29, 2003 at 21:16 UTC |