Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Perl5 Internal Representation of string variable

by Marshall (Abbot)
on Oct 02, 2010 at 18:22 UTC ( #863097=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl5 Internal Representation of string variable
in thread Perl5 Internal Representation of string variable

You need the backslash \, when the following character has a special meaning. Whether that is required or not is context dependent. In a regex you have to backslash the [ character because that character has a special meaning in a regex. But in a print statement this is not necessary.
  • Comment on Re^3: Perl5 Internal Representation of string variable

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://863097]
help
Chatterbox?
VinsWorldcom takes a cookie from the platter on the sideboard.
Discipulus take his wine and hope the coockie is a 'tozzetto alle mandorle'

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-04-26 20:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (488 votes). Check out past polls.