Perl-Sensitive Sunglasses | |
PerlMonks |
Re: One true regexp for untainting windows filenames?by cdarke (Prior) |
on Jan 08, 2009 at 08:47 UTC ( [id://734842]=note: print w/replies, xml ) | Need Help?? |
Strictly speaking it is the filesystem which defines which characters are legal, not the operating system. This means that a drive shared between *nix and Windows (using, say, Samba) can have an interesting effect on file naming. Also remember that NTFS filenames can contain Unicode characters. Take a look at the .pm for File::Basename (which should be in your base release).
In Section
Seekers of Perl Wisdom
|
|