cosmicperl has asked for the wisdom of the Perl Monks concerning the following question:
Becomes something like (this example doesn't work hence my asking):-my @array = (item1,item2...); my %hash = (key=value...); &mysubroutine(\@array,\%hash);
&mysubroutine(\(item1,item2),\(key=value));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing or reference to a subroutine
by duff (Parson) on Dec 06, 2005 at 05:50 UTC | |
|
Re: Passing or reference to a subroutine
by davido (Cardinal) on Dec 06, 2005 at 05:53 UTC | |
by cosmicperl (Chaplain) on Dec 06, 2005 at 06:31 UTC | |
|
Re: Passing or reference to a subroutine
by vennirajan (Friar) on Dec 06, 2005 at 05:51 UTC |