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

Re: path is broken

by mirod (Canon)
on Dec 07, 2000 at 00:07 UTC ( [id://45302]=note: print w/replies, xml ) Need Help??


in reply to path is broken

To pass a file name with spaces to the shell you have to backslash the file names:

$filename=~ s/(\s)/\\$1/g; $line_count = `wc -l $filename`;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found