|Problems? Is your data what you think it is?|
Spaces in file names passed as argumentsby txixco (Novice)
|on Sep 08, 2011 at 15:40 UTC||Need Help??|
txixco has asked for the
wisdom of the Perl Monks concerning the following question:
I've got the following code to standarize my movie titles:
The problem is exactly because the files have spaces in the name. I've searched for a solution and I only find that I have to quote the argument; this partially works, as it works if I use something like titulize.pl "*.avi", but not if I use titulize.pl "test spacefull name.avi". Moreover, I'd like if possible to pass the file names as in the normal way, as every other command line program.
Could somebody bring me some light about how to pass file names with spaces as arguments?
Update: Excuse me all of you who have send me your ideas; I'm having some problems with my computer, so I will answer all of you as soon as I could try your solutions.