Perl: the Markov chain saw | |
PerlMonks |
Re: how to open a file with space in its nameby inman (Curate) |
on Jan 05, 2006 at 09:38 UTC ( [id://521152]=note: print w/replies, xml ) | Need Help?? |
I amd assuming that you are using Windows - A file path with embedded spaces needs to be delimited by double quotes. Add escaped double quotes around your $file. This is what you would have to do if you typed in the command yourself.
As mentioned previously, the new style of system command removes this ambiguity and will make for a more portable program.
In Section
Seekers of Perl Wisdom
|
|