Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^3: calling a perl script within a perl script

by sk (Curate)
on Nov 27, 2005 at 03:52 UTC ( #511982=note: print w/ replies, xml ) Need Help??

in reply to Re^2: calling a perl script within a perl script
in thread calling a perl script within a perl script

You got to give us more information on the error (can you post the error?). if you are talking about your die erroring out then you you need to check if your program ( worked or not before you debug the one you posted. The code you had and the one i posted work just fine for me (with the modification).

Also couple of things -

1. Can you run your test script on the command line with an argument does it work? can you do that with a * (shell wild-card) does it work?

2. Do something like  my $ret = `perl $f`; and then print out $ret for each file.

Make sure you have  use warnings

Hope this helps.


Update: Thanks sgifford! It is a good point and I think that could be the reason why the script is failing.

sbp, Actually tho, i am wondering why would you even need this wrapper script? Can't you just do * on the directory you want?

Comment on Re^3: calling a perl script within a perl script
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2015-11-27 07:37 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (719 votes), past polls