Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: search for '\' in perl

by Lotus1 (Chaplain)
on Dec 12, 2011 at 13:56 UTC ( #943087=note: print w/ replies, xml ) Need Help??


in reply to search for '\' in perl

Please add these to the top of your code:

use strict; use warnings;

You are using doublequotes for the path so the backslash '\' is interpreted as an escape character for the next character. Try using single quotes. Also read perlretut, the perl regular expresion tutorial, especially the section about the 'g' modifier. Let us know what errors you get if you get stuck after trying these.


Comment on Re: search for '\' in perl
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2015-08-30 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (350 votes), past polls