Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Working of \Q in m//

by ikegami (Patriarch)
on Oct 15, 2007 at 19:20 UTC ( [id://645006]=note: print w/replies, xml ) Need Help??


in reply to Working of \Q in m//

$\ = "\n"; my $x='E:\\th\\foo'; print qr/^$x/; # start,"E",":",tab,"h",formfeed,"o","o" print qr/^\Q$x/; # start,"E",":","\","t","h","\","f","o","o" print qr/^\$x/; # start,"$","x" print qr/^\\$x/; # start,"\","E",":",tab,"h",formfeed,"o","o" print qr/E:\\th\\foo/; # "E",":","\","t","h","\","f","o","o" print qr/E\:\\th\\foo/; # "E",":","\","t","h","\","f","o","o" print qr/E\\:\\th\\foo/; # "E","\",":","\","t","h","\","f","o","o"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 01:41 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found