Moving Filesby Anonymous Monk
|on Aug 07, 2008 at 16:02 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
Two questions for you all!
1. How do I move things from one directory to another in a perl script. SOO for example, I have the following directory structure:
----- DIR 1
----- DIR 2
---------- DIR 2 SUB 1
I have a perl script which executes in DIR 1 and generates a file, but I want the file to be placed in DIR 2. As far as I know, this isn't easy. It's easy to say place a file from DIR 2 into DIR 2 Sub. I could of course physical move the files but I would rather know if I could do this using a perl script.
2. How do I make a perl script that executes several other perl scripts?
My last sneaky question is, say I want to make a script that updates certain files once a month (i.e. it will FTP them) is there I way I could automate this? Or would I have to manually tell the update script to run each month?
Any help would be great : )