On Wed, Mar 5, 2008 at 11:57 PM, Richard Lee <[EMAIL PROTECTED]> wrote:
snip
>  Also, can you explain why below is wrong?
snip
>          func([EMAIL PROTECTED]);
>          sub func {
>              my $aref = shift;
>              my $oref = "$aref";  # WRONG  <----- why is it wrong?
>          }
snip

Stringified references cannot be turned back into references and the
value is useless for anything but comparison for equality with other
stringified references.

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

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


Reply via email to