thanks to your quickly answer.

now, i know :
>>'foo' is a key in symbol table,whose corresponding value is *foo.
is *foo itself a hash too?  *foo{SCALAR},*foo{ARRAY}...are reference to
$foo, @foo,....
is that right?

and i want to know why  *foo == *{*foo}.

thanks very much.



On Jan 23, 2008 11:43 PM, Jeff Pang <[EMAIL PROTECTED]> wrote:

>
>
> -----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
>



-- 
**********************************************
**                Happy Everyday            **
**********************************************

Reply via email to