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

Re^3: Running a script iteratively.

by Your Mother (Archbishop)
on Apr 24, 2008 at 15:43 UTC ( [id://682658]=note: print w/replies, xml ) Need Help??


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

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://682658]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found