First of all, if I were you I'd check out perldata and perlref.
Second, you can probably do this relatively cleanly with eval:
my $tgs = shift; # scalar. my %hash = ( $tgs => 1 ); # sane-ish $hash{$tgs} = 1; # also sane-ish eval "my %Test_hash_$tgs = ()"; # why do this? die $@ if $@; # explode if it didn't work
Let me ask this: What are you trying to achieve?
-Paul
In reply to Re: Perl Variables
by jettero
in thread Perl Variables
by Nalina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |