in reply to passing of variables
Yes, just access the hash by reference
sub play_around { my $hashref = shift; # This will effect the outside hash $hashref->{leggo} = "yes"; ... }
That's what you're doing when you use ${$_[0]}{leggo}.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: passing of variables
by itsscott (Sexton) on May 06, 2011 at 17:58 UTC |