Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Compiling and executing multiple files.

by chargrill (Parson)
on Aug 30, 2006 at 05:38 UTC ( [id://570312]=note: print w/replies, xml ) Need Help??


in reply to Compiling and executing multiple files.

Compile and execute? Generally pretty much the same thing, unless you mean you want to run perl -c <filename> before each run.

Though not strictly a perl question, something like this ought to get you started:

$ for i in `ls *.pl`;do perl -c $i > $i.log 2>&1; echo "compiled, now +running" >> $i.log; perl $i >> $i.log 2>&1;done

Note: not thoroughly tested.



--chargrill
$,=42;for(34,0,-3,9,-11,11,-17,7,-5){$*.=pack'c'=>$,+=$_}for(reverse s +plit//=>$* ){$%++?$ %%2?push@C,$_,$":push@c,$_,$":(push@C,$_,$")&&push@c,$"}$C[$# +C]=$/;($#C >$#c)?($ c=\@C)&&($ C=\@c):($ c=\@c)&&($C=\@C);$%=$|;for(@$c){print$_^ +$$C[$%++]}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-29 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found