ciao, Veit Wehneruse strict; use Data::Dumper; my %bits; $bits{'zero'}='start element'; &loader('something',\%bits); print 'Result:'.Dumper(\%bits); sub loader{ # loads values into hash.. my $tail = shift; print 'In sub:'.Dumper($_[0]); $_[0]->{'one'}='thing_'.$tail; $_[0]->{'two'}='thong_'.$tail; print 'After add:'.Dumper($_[0]); }
In reply to Re: Passing hashes by reference
by uecker
in thread Passing hashes by reference
by wolis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |