A simple question. It has been a long time since I programmed in perl, and for some reason I can't seem to sort this problem out. References in perl....
#!/usr/local/bin/perl -w use strict; sub get_conf(\%); my %cur_conf; $cur_conf{test} = "test"; get_conf(\%cur_conf); print "after: " . $cur_conf{test}; sub get_conf(\%) { my $href = @_; $href->{test} = "another test"; }
To my tired newbie eyes, this looks like it should work but does not. Thanks for any help.
gnubbsIn reply to Hashes and Functions by gnubbs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |