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.
$,=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[$%++]}
In reply to Re: Compiling and executing multiple files.
by chargrill
in thread Compiling and executing multiple files.
by valavanp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |