in reply to Getting a Hash Name
If you pay the maximum attention, you could pass the name of the hash as a scalar string, then usemy *otherName = %hash1;
Update: I realised that eval is overkill in this case, a simple %$name will do as suggested by others. Nonetheless, this must not be an excuse to drop a careful approach.
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting a Hash Name
by Thilosophy (Curate) on Jul 04, 2005 at 12:19 UTC |