cosmicperl has asked for the wisdom of the Perl Monks concerning the following question:
To me this seems a bit long winded. I'm sure one of you guys can show me a better way to do it :)my @data = split(/\|/, $line); my $var1 = unshift @line; my $var2 ... my $var5 = join @line;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split and join, what's the clever way to do it
by ikegami (Patriarch) on Jan 27, 2008 at 03:49 UTC | |
by cosmicperl (Chaplain) on Jan 30, 2008 at 18:06 UTC | |
|
Re: split and join, what's the clever way to do it
by hipowls (Curate) on Jan 27, 2008 at 03:35 UTC | |
by ikegami (Patriarch) on Jan 27, 2008 at 03:55 UTC | |
by dsheroh (Monsignor) on Jan 27, 2008 at 18:25 UTC | |
by ikegami (Patriarch) on Jan 28, 2008 at 01:10 UTC | |
by ysth (Canon) on Jan 28, 2008 at 02:52 UTC | |
by Fletch (Bishop) on Jan 27, 2008 at 03:51 UTC | |
|
Re: split and join, what's the clever way to do it
by pilcrow (Sexton) on Jan 30, 2008 at 18:20 UTC |