Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: why this works? quoted strings

by moritz (Cardinal)
on Oct 25, 2011 at 12:30 UTC ( #933611=note: print w/ replies, xml ) Need Help??


in reply to why this works? quoted strings

${ ... } just interpolates the result from an expression, in this case ($ALIAS being 0) it is \"$pname\".

With the example you gave, the eval fails, so I don't know what's the point of it.


Comment on Re: why this works? quoted strings
Select or Download Code
Replies are listed 'Best First'.
Re^2: why this works? quoted strings
by patcat88 (Deacon) on Oct 25, 2011 at 12:49 UTC
Re^2: why this works? quoted strings
by ikegami (Pope) on Oct 25, 2011 at 21:19 UTC
    $... interpolates. Except for ${BAREWORD} (which means $BAREWORD), ${ ... } dereferences first. Just like outside of string literals.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://933611]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (15)
As of 2015-07-29 16:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (265 votes), past polls