in reply to Passing a reference to an element in an array of hashes
sub Add_key_and_value { our $ref; # so that "Strict" does not complain (use vars qw[$ref] + also works) local *ref = \$_[0]; # when "$ref" springs into existence, aliased +to $_[0] my (undef, $key, $value ) = @_; $ref->{ $key } = $value; }
..to maintain is to slowly feel your soul, sanity and sentience ebb away as you become one with the Evil.
|
|---|