-----Original Message-----
>From: Enjoy_Life <[EMAIL PROTECTED]>

>
>$foo = "Some value";
>*foo{PACKAGE};      #(1)
>*{*foo}{PACKAGE};   #(2)
>
>why the value of (1) and (2) are equal?

This is because *foo == *{*foo}.

>does that means foo is equals to *foo?
>

No.'foo' is a key in symbol table,whose corresponding value is *foo.
see this test:

$ perl -le 'our $foo;print $::{foo}'
*main::foo

here *main::foo == *foo. %:: is the symbol table entry.

Regards,
Jeff Pang

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to