westy032001 has asked for the wisdom of the Perl Monks concerning the following question:
many thanks. Thank you all for your responses!!use strict; my $server="jwesvsf7"; my $timestamp = "123433"; my $attribute="CPU_USER"; my $hashname =$attribute."_".$server; print "$hashname"; ${$hashname}{key} ="value" ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Strict, cant use string as hash ref
by moritz (Cardinal) on Dec 09, 2009 at 12:15 UTC | |
|
Re: Strict, cant use string as hash ref
by JavaFan (Canon) on Dec 09, 2009 at 12:09 UTC | |
|
Re: Strict, cant use string as hash ref
by roboticus (Chancellor) on Dec 09, 2009 at 13:17 UTC |