more useful options | |
PerlMonks |
Spaces in file names passed as argumentsby txixco (Novice) |
on Sep 08, 2011 at 15:40 UTC ( [id://924842]=perlquestion: print w/replies, xml ) | Need Help?? |
txixco has asked for the wisdom of the Perl Monks concerning the following question: Hi all. 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? Best regards. 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.
Back to
Seekers of Perl Wisdom
|
|