moving file using perl

Chris G cl at isbd.net
Thu May 1 07:54:43 UTC 2008


On Thu, May 01, 2008 at 10:41:21AM +0300, OOzy Pal wrote:
> Hello,
> 
> How can I move a file to a directory name DONE using perl. I tried
> this but it did not work?
> 
> $file='Myfile';
> rename $file, 'Done/'$file;
> 
... and what error message did you get?  Does the directory exist (and
remember 'DONE' and 'Done' are different in Linux/Unix)?

-- 
Chris Green




More information about the ubuntu-users mailing list