SPUG: odd array ref issue

John Subaykan john.spug at subaykan.com
Thu Jan 26 11:00:26 PST 2006


Before you assign the arrayref to the $params hashref, you can do:

untie %$params;

or this disgusting hack which I found interesting:

my %params2 = %$params;
$params = \%params2;

# copy the dereferenced hash, then assign it back to $params.

More information about the spug-list mailing list