in reply to Re: Re: Hashes and Functions
in thread Hashes and Functions
IMHO, "shift" is the better way to get arguments off of @_. If you start using "shift", you'll never get confused about scalar vs. list context, etc.
So,
my ($cref, $dref) = @_;
becomes
my $cref = shift; my $dref = shift;
Very clean, very easy. No confusion :-)
HTH.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re4: Hashes and Functions
by dragonchild (Archbishop) on Apr 14, 2003 at 17:02 UTC |