Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Parsing a filename

by tomfahle (Priest)
on Jul 07, 2008 at 17:47 UTC ( #696052=note: print w/replies, xml ) Need Help??


in reply to Parsing a filename

It's just a matter of quoting. You've to escpape your backslashes \ (\\) or use single quotes (').

"C:\\Documents and Settings\\My Documents\\sample.txt";

or

'C:\\Documents and Settings\\My Documents\\sample.txt';

Otherwise it's seen like this

\D...\M...\s....

Hope this helps.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2021-10-22 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (86 votes). Check out past polls.

    Notices?