Cine has asked for the wisdom of the Perl Monks concerning the following question:
sub a { my $ref = shift; my %c = %$ref; $c{a} = 'a'; } sub b { my $c = shift; $$c{b} = 'b'; } my %c; &a(\%c); &b(\%c); print foreach (keys %c);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 1: References
by tilly (Archbishop) on Aug 19, 2001 at 16:58 UTC | |
by Cine (Friar) on Aug 19, 2001 at 21:18 UTC | |
by tilly (Archbishop) on Aug 19, 2001 at 21:44 UTC | |
by Cine (Friar) on Aug 20, 2001 at 10:28 UTC | |
by tilly (Archbishop) on Aug 20, 2001 at 15:58 UTC | |
by dragonchild (Archbishop) on Aug 20, 2001 at 16:35 UTC | |
| |
Re: References
by japhy (Canon) on Aug 19, 2001 at 16:55 UTC | |
Re: References
by cLive ;-) (Prior) on Aug 19, 2001 at 23:35 UTC |