Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Text Processing

by imrags (Monk)
on Jul 27, 2009 at 06:11 UTC ( #783450=note: print w/ replies, xml ) Need Help??


in reply to Text Processing

Double quotes processes the string. "\" is generally used to escape characters, here perl interprets it as \c,
Now, depending on which machine you are on (here it's windows), so i'd suggest escaping the "\" with another one.

my $string = "C:\\cFiles"; print $string; my $string2 = "C:/cFiles"; print $string2;
Both of them should work, as internally windows processes the directory separation using "/" rather than "\".
Raghu


Comment on Re: Text Processing
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2015-07-07 02:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls