Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
But when I try to execute this with 'strict' on, I get an error telling me that this is a symbolic reference.print keys %{ hash_ref -> { key } }; #( Hash of Hash )
orprint keys %{ hash_ref -> { "key" } }; #( Hash of Hash )
How should I rewrite my first line to make it work with 'strict' turned on. Thanks.print keys %{ "hash_ref -> { key }" }; #( Hash of Hash )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why is this a symbolic reference?
by btrott (Parson) on Mar 05, 2001 at 00:08 UTC | |
|
Re: Why is this a symbolic reference?
by japhy (Canon) on Mar 05, 2001 at 00:09 UTC | |
|
Re (tilly) 1: Why is this a symbolic reference?
by tilly (Archbishop) on Mar 05, 2001 at 02:21 UTC |