Jeff Pang wrote:
>>>[EMAIL PROTECTED] coremail]$ perl -le 'our %test = (type => "software");
>>>print ${$::{test}{HASH}}{type}'
>>>[ no output ]
>>You are trying to print $::{test}->{HASH}->{type} but $::{test} does not
>>contain a hash reference.
>
> Thanks John.Then why can this work?
>> [EMAIL PROTECTED] coremail]$ perl -le 'our %test = (type => "software");
>> print ${$::{test}{HASH}}{type}'
>> [ no output ]
>
>You are trying to print $::{test}->{HASH}->{type} but $::{test} does not
>contain a hash reference.
>
Thanks John.Then why can this work?
$ perl -le 'our
Jeff Pang wrote:
> hello,list,
Hello,
> See these commands pls:
>
> [EMAIL PROTECTED] coremail]$ perl -le 'our %test = (type => "software");
> print $::{test}'
> *main::test
You are printing the value for the key 'test' in the hash %:: (the symbol
table; see the "Symbol Tables"