Perl Monk, Perl Meditation | |
PerlMonks |
Re: Opening filenames with special charactersby shandor (Monk) |
on Mar 12, 2007 at 18:02 UTC ( [id://604408]=note: print w/replies, xml ) | Need Help?? |
If you're using a shell command (in system() or ``'s) to get the file name, don't forget to chomp the output. You might have a \n on there. Another thing I do when working with strange characters is output the variable and run it through od -c (on a Unix system) to see if some hidden characters are hiding from me.
In Section
Seekers of Perl Wisdom
|
|