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


in reply to Re^2: How to call Linux command sequentially
in thread How to call Linux command sequentially

When you call exec a new process is forked and the parent quits, whereas when you call system the parent waits for the system call to complete. Using backticks `` or the qx is similar to a system call but the output is returned to the caller. eg.
$ perl -Mstrict -e 'my @out =qx{ls $ENV{HOME}/tmp}; chomp @out; print join (", " , @out), "\n";' a.out, test.c, test.dat, test.pl
Could you show us how you call the command within your Perl script?

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."