in reply to substitute \ and / with \\ ?

Might be worth mentioning that for pretty much anything that you do with paths internal to perl, you can use "c:/tmp/sup/$filename" which is a lot easier on the eyes than "c:\\tmp\\sup\\$filename".

You can also get away with coding 'c:\tmp\sup' . $filename where you need constants that are going to be passed to CMD.EXE or other uncooperative .exe's, so long as you use single quotes.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller