Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: executing script one at the time

by Vautrin (Hermit)
on Feb 16, 2004 at 21:49 UTC ( #329459=note: print w/replies, xml ) Need Help??


in reply to executing script one at the time

Try the following code to see if you get any errors:

use strict; use warnings; while (my $line = <FILES_TO_RUN>) { chomp $line; die ("File does not exist") unless (-e $line); die ("File cannot be executed") unless (-x $line); system(qq($line)); }

And remember to always have use strict; use warnings; at the top of your scripts.


Want to support the EFF and FSF by buying cool stuff? Click here.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-05-25 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?