in reply to Re: Re: how to dynamically declare a varialble?
in thread how to dynamically declare a varialble?

use strict; my %hash = ( 1 => \$1, 2 => \$2 ); my $hash = 1; "aa bb cc" =~ /(aa)/ and print ${ $hash{$hash} },$/; __END__ aa