Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Moving Files

by tptass (Sexton)
on Aug 08, 2008 at 00:33 UTC ( #703028=note: print w/replies, xml ) Need Help??

in reply to Moving Files

Moving Files:

  • Simply use the Perl rename function.
  • Why can't you simply just use open to redirect the output to the correct place in the first place? But yet again you aren't probably just writing out information...

Executing other perl scripts:

  • You can use the perl system command, likes others have mentioned above.
  • Or, if you implement the sub-perl script as subroutines , you could use do. You basically pass the name of the file to be processed as an argument to the subroutine, rather than a command-line argument. Make sure there are no global variables shared between the scripts. Then, it should be easy to execute 'do ""' in, which will make the subroutine(s) in available to the statements in

Updates once a month:

  • Use a cronjob or scheduler to perform this.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://703028]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2023-12-04 16:07 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (25 votes). Check out past polls.