Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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.

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 exploiting the Monastery: (6)
As of 2016-08-27 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (380 votes). Check out past polls.