> > I need to remove ./ and #from a list of files. I can do it in sed but I am > > not able to use it in my perl script. I tried to do something like this
# delete all .s and /s $variable_to_remove_from =~ tr/\.\///d; # remove the first ./ and anything before it from # $variable_to_remove_from if ($variable_to_remove_from =~ m/\.\//) { $variable_to_remove_from =~ m/\.\//; $variable_to_remove_from = $'; } # remove only ./ from the file if it exists and is on a word boundary if ($variable_to_remove_from =~ m/\b\.\//) { $variable_to_remove_from =~ m/\b\.\//; $variable_to_remove_from = $'; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]