MasterGremlin has asked for the wisdom of the Perl Monks concerning the following question:
And then I never use temp again. Is there anyway I can combine the above two lines into a single command? Thanks.my @temp = split ",", $foo; print "$temp[2]\n";
20030806 Edit by jeffa: Changed title from 'a quick question from a perl newbie '
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Retrieve only what I need from split without using temp array
by merlyn (Sage) on Aug 05, 2003 at 21:34 UTC | |
|
Re: Retrieve only what I need from split without using temp array
by Limbic~Region (Chancellor) on Aug 05, 2003 at 21:37 UTC | |
by leriksen (Curate) on Aug 06, 2003 at 03:05 UTC | |
by RMGir (Prior) on Aug 06, 2003 at 11:55 UTC | |
by bbfu (Curate) on Aug 06, 2003 at 19:09 UTC | |
|
Re: Retrieve only what I need from split without using temp array
by broquaint (Abbot) on Aug 05, 2003 at 22:51 UTC | |
|
Re: Retrieve only what I need from split without using temp array
by demerphq (Chancellor) on Aug 05, 2003 at 22:14 UTC |