Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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,
    Zaxo

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://178841]
Approved by tye
help
Chatterbox?
[choroba]: 10 bugs in the tracker?
[1nickt]: Yes, and recommendation against using it, in the doc for Devel::Declare, on whcih it is based.
[1nickt]: I asked the new $boiss what I should brush up on before starting work next week, and he named Moo, DBIx::Class and Method::Signatures
[1nickt]: choroba That's why I asked if anyone is using it :-)
choroba only has used Moo from the htree
[1nickt]: Pardonm?

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-11-24 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (349 votes). Check out past polls.

    Notices?