on 3/28/03 12:23 PM, Rich Morin at [EMAIL PROTECTED] wrote: > Let's say that I want to use a command (e.g., md5) on a file. No > problem; just use: > > system("md5 $file"); > > Except that the file name could contain all manner of white space > characters, shell wildcard characters, etc. Is there a module that > deals with this sort of thing (e.g., wrapping each argument in the > appropriate kinds of quoting)?
I've seen regex's that strip non-alphanumeric charactors, white space, etc. Other than that, wouldn't you just use something like this? system("md5", '$file'); If that's just plain stupid, please forgive me, I'm not a guru, japh.... -- Bill Stephenson www.PerlHelp.com 1-417-546-5593