Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Running a script iteratively.

by moklevat (Priest)
on Apr 24, 2008 at 15:21 UTC ( #682654=note: print w/replies, xml ) Need Help??


in reply to Re: Running a script iteratively.
in thread Running a script iteratively.

It's OK, you used system. My backticks were met with revulsion. :-)

Replies are listed 'Best First'.
Re^3: Running a script iteratively.
by Your Mother (Chancellor) on Apr 24, 2008 at 15:43 UTC

    I'll see your revulsion and raise you a silent bug. The above used system without separating the arguments, or checking return value. The perldoc shows better practice. If you're writing immutable code on your own box, you can obviously shove it all into one string but it's not a habit to cultivate.

    my @args = qw( perl get_value.pl ); system(@args) == 0 or die "system @args failed: $?"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://682654]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2016-12-06 00:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (96 votes). Check out past polls.