Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

backtick calls in loops

by Anonymous Monk
on Jul 02, 2002 at 13:39 UTC ( #178841=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Oh my Brothers and Sisters I am trying to call a perl script from within a perl (CGI) script using backticks. This call is being made within a while loop. To this novices frustration only the first call is being executed. The script runs happily to its end without error, but the external script is executed only once and not the multiple times I had hoped for. Can anyone help me here???

Replies are listed 'Best First'.
Re: backtick calls in loops
by ariels (Curate) on Jul 02, 2002 at 13:47 UTC
    You might wish to read about how (not) to ask a question.

    It's impossible for anyone to help you, for the simple reason that you're not giving your nonworking code. The following should help you post an answerable question. It might even let you ask more precisely, or find the problem yourself!

    Try to write a short while loop which "calls a perl script using backticks". Does it work? Is it executed just once, or several times? If it's executed just the one time, try replacing the perl script call with a print statement. Does that execute just once? Is your loop executing more than once?

    Try to find short, nonworking code, and post that. Then we might be able to help you.

Re: backtick calls in loops
by Zaxo (Archbishop) on Jul 02, 2002 at 13:43 UTC

    Yes, but we'll have to see the loop first.

    After Compline,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://178841]
Approved by tye
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2018-05-23 00:35 GMT
Find Nodes?
    Voting Booth?