Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 God said, "Let Newton be!"...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2017-09-22 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (257 votes). Check out past polls.

    Notices?