[OT] Re: moving file using perl
OOzy Pal
oozypal at gmail.com
Thu May 1 11:20:08 UTC 2008
On Thu, May 1, 2008 at 11:24 AM, Felipe Figueiredo <philsf79 at gmail.com> wrote:
> On Thu 01 May 2008 04:41:21 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;
>
> you can use the File::Copy module.
>
> use File::Copy "move";
> move ($file, "Done/$file");
>
> or even
>
> move ($file, "Done/");
>
> Se the perdoc of the module mentioned.
>
> regards
> FF
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
Thank you all,
> use File::Copy "move";
> move ($file, "Done/$file");
worked perfect.
--
OOzy
Ubuntu-Gutsy (7.10)
More information about the ubuntu-users
mailing list