Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: How do you clean up user specified filenames?by tomhukins (Curate) |
on Feb 21, 2001 at 21:13 UTC ( [id://59965]=note: print w/replies, xml ) | Need Help?? |
The problem with tr/A-Za-z_.-//dc; is that the . character could be used to attempt to open the current or parent directory.
I'm paranoid enough to do something like to make sure the user doesn't enter a string containing only dots.
In Section
Seekers of Perl Wisdom
|
|