in reply to Problem to store referrence as key value in a hash
#!/usr/bin/perl use strict; use warnings; my $a=10; my %b; $b{\$a}= $a; while ( my ($key, $value) = each %b) { print "$key => $b{$key}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem to store referrence as key value in a hash
by grinder (Bishop) on Jan 11, 2008 at 14:03 UTC | |
by poolpi (Hermit) on Jan 11, 2008 at 20:36 UTC |