cosmicperl has asked for the wisdom of the Perl Monks concerning the following question:
Sometimes I'm passing a lot of values, so this way get's long winded. I'm sure there is a way to do it in a single line. Your perl wisdom is welcome.my ($scalar, $tmparray, $scalar1, $tmparray2) = subroutine; my @array = @$tmparray; my @array2 = @$tmparray2;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing array references
by Fletch (Bishop) on Dec 04, 2004 at 14:28 UTC | |
by graq (Curate) on Dec 06, 2004 at 10:58 UTC | |
|
Re: passing array references
by gaal (Parson) on Dec 04, 2004 at 14:35 UTC | |
|
Re: passing array references
by Zed_Lopez (Chaplain) on Dec 04, 2004 at 16:20 UTC | |
|
Re: passing array references
by Prior Nacre V (Hermit) on Dec 05, 2004 at 05:55 UTC | |
|
Re: passing array references
by roho (Bishop) on Dec 06, 2004 at 09:09 UTC | |
|
Re: passing array references
by educated_foo (Vicar) on Dec 09, 2004 at 23:30 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |