Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: I go crazy with windows filenames with spaces!

by Anonymous Monk
on Jan 19, 2010 at 14:59 UTC ( [id://818201]=note: print w/replies, xml ) Need Help??


in reply to Re^3: I go crazy with windows filenames with spaces!
in thread I go crazy with windows filenames with spaces!

Ok it works with cwd() magic. I can continue with my script. However, let us assume we are studying Perl on Perl Univeristy and we want to get current directory with  $path = `cd`; Can we do it and use it with opendir() later or not ? This is surprising for me I can see exactly same path in both cases but the second one doesn't work.

Replies are listed 'Best First'.
Re^5: I go crazy with windows filenames with spaces!
by Corion (Patriarch) on Jan 19, 2010 at 15:07 UTC

    I'm not sure that $path with your additional substitutions and "c:/documents\ and\ settings/username/desktop/perf_analyzer" result in the same string. In fact, if you print out the two, they are different. Why are you doing such weird substitutions like prefixing each space with a backslash?

Re^5: I go crazy with windows filenames with spaces!
by Anonymous Monk on Jan 19, 2010 at 15:05 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-23 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found