Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-03-30 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (357 votes). Check out past polls.