Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Ref to a list not being equivalent to a list of refs to each element

by broquaint (Abbot)
on Jun 22, 2006 at 16:22 UTC ( #556940=note: print w/replies, xml ) Need Help??


in reply to Ref to a list not being equivalent to a list of refs to each element

I believe you're seeing this behavior because
\("foo");
creates a reference to a temporary value whereas
\"foo";
creates a reference to a constant value. I don't know if that is explicitly documented anywhere, but there you have it.
HTH

_________
broquaint

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://556940]
help
Chatterbox?
[Discipulus]: Untillian Headache or about the semantic of until
[Discipulus]: Lady_Aleena use Great::Flood really, start some little project with new eyes (and a DB)
[Discipulus]: 'unless it rains' => 'a meno che NON piova'
erix is always in favour of code-revolutions

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2017-05-27 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?