in reply to Problems with perl script calling perl scripts

Hmm, try something like this: print DATA $message; (Assuming that wasn't a typo, that is.)

You can check the special variable $? to see if your backticks call executed successfully (it will be 0 if it works). Since variables are interpolated in that context, the only other thing is that the Perl executable isn't in the path of the subprocess.

Replies are listed 'Best First'.
RE: Re: Problems with perl script calling perl scripts
by mr_ayo (Beadle) on May 01, 2000 at 21:49 UTC
    Yea, that was a typo.
    At any rate, I've tried the two viable solutions offered, putting the command into a variable and printing it out as well as checking the status of the backtick call.
    Oddly enough, both were correct as in the expected command call was printed out and the return status was successful.
    Well, I guess I'll just have to throw them all into one script. If I ever come across the problem I'll be sure to let everyone know.