chiburashka has asked for the wisdom of the Perl Monks concerning the following question:
%h = ( 'word1'=>[2,3], 'word2'=>[\$h{'word1'},3], 'word3'=>[1,2] ); print "$h{'word2'}[0]\n";
Now, the output is : SCALAR(0x8064e88)
So my question is how to make that output look normal(like what it's supposed to be) ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash to text
by antirice (Priest) on Aug 14, 2004 at 20:01 UTC | |
|
Re: hash to text
by been42 (Curate) on Aug 14, 2004 at 20:14 UTC | |
|
Re: hash to text
by guha (Priest) on Aug 14, 2004 at 20:23 UTC | |
by chiburashka (Initiate) on Aug 14, 2004 at 21:19 UTC | |
by Velaki (Chaplain) on Aug 14, 2004 at 22:02 UTC | |
by chiburashka (Initiate) on Aug 14, 2004 at 20:56 UTC | |
|
Re: hash to text
by johnnywang (Priest) on Aug 14, 2004 at 22:47 UTC | |
|
Re: hash to text
by perldeveloper (Scribe) on Aug 15, 2004 at 14:16 UTC |