> since I removed all unwanted files from the array @files earlier while > reading the directory contents, I simply changed: > $file =~ /^(\w\.)+$/; > to > $file =~ /^(.+)$/; > and it works!!!!
Glad you were able to get it working. Unfortunately, the regex you have chosen is effectively bypassing taintmode by allowing any character to pass the test. Generally you want to use a restrictive test that only allows valid characters. It sounds like you have some files which have non-alphanumeric characters which is why the regex I suggested failed to work. If you have spaces in these files include \s. You should read up on regex's in Perl and either fix the regex or just turn off taintmode. Good luck, William -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]