tphyahoo has asked for the wisdom of the Perl Monks concerning the following question:
my $arg = shift or die "no arg"; my %arg = %{$arg};
UPDATE: Thanks for pointing out the obvious, LR et al. There's really no reason to do this; I'm rewriting my code with just the ref.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Better way to dereference a shifted hashref arg?
by Limbic~Region (Chancellor) on Jun 15, 2005 at 15:38 UTC | |
|
Re: Better way to dereference a shifted hashref arg?
by Fang (Pilgrim) on Jun 15, 2005 at 15:43 UTC | |
|
Re: Better way to dereference a shifted hashref arg?
by davidrw (Prior) on Jun 15, 2005 at 15:43 UTC | |
|
Re: Better way to dereference a shifted hashref arg?
by Fletch (Bishop) on Jun 15, 2005 at 15:39 UTC | |
|
Re: Better way to dereference a shifted hashref arg?
by tlm (Prior) on Jun 15, 2005 at 16:08 UTC | |
by chromatic (Archbishop) on Jun 15, 2005 at 17:36 UTC | |
by tlm (Prior) on Jun 15, 2005 at 18:04 UTC | |
|
Re: Better way to dereference a shifted hashref arg?
by fireartist (Chaplain) on Jun 15, 2005 at 15:42 UTC | |
by ikegami (Patriarch) on Jun 15, 2005 at 18:13 UTC |