Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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
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: (3)
As of 2014-08-31 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls