Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Interpolation in Single-quotes?

by psini (Deacon)
on May 13, 2008 at 19:34 UTC ( [id://686352]=note: print w/replies, xml ) Need Help??


in reply to Interpolation in Single-quotes?

From perlop:

Quote-Like Operators

* q/STRING/

* 'STRING'

A single-quoted, literal string. A backslash represents a backslash unless followed by the delimiter or another backslash, in which case the delimiter or backslash is interpolated.

Rule One: Do not act incautiously when confronting a little bald wrinkly smiling man.

Replies are listed 'Best First'.
Re^2: Interpolation in Single-quotes?
by goibhniu (Hermit) on May 13, 2008 at 19:40 UTC

    ++ This is exactly the doc I couldn't find.

    Thanks to duff and 5mi11er as well. In particular, I found helpful, 5mi11er's distinction between variable interpolation and escaping the delimeter.


    #my sig used to say 'I humbly seek wisdom. '. Now it says:
    use strict;
    use warnings;
    I humbly seek wisdom.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-18 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found