http://qs321.pair.com?node_id=682654


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 (Archbishop) 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: $?"