in reply to escaping filenames

You don't need to escape spaces to use them in the File::* modules. What gave you that idea?

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: •Re: escaping filenames
by Anonymous Monk on Jun 20, 2002 at 11:57 UTC
    OK File::Copy you don't need to escape filenames, but File::NCopy, and File::Remove you do. So what is the best way to escape filenames. There must be a regular expression that will do everything. On an unrelated topic, how do I move a directory and all of its files to a new destination without doing a system call, or copying the tree and deleting the tree as I am doing now. I can't seem to find a move or rename perl function to do it. Any suggestions?