in reply to system function

system uses the shell when you call it with one argument. It doesn't do that when you call it with a list. The Perl Cookbook suggests code like this:
my $status = system($program, $arg1, $arg2); die "$program exited funny: $?" unless $status == 0;
I would expect the array to flatten into a list in your last example, but I wouldn't expect a list to become a single item. Which error message are you receiving?

Replies are listed 'Best First'.
RE: Re: system function
by Anonymous Monk on Mar 21, 2000 at 20:52 UTC
    This reply was the best. Thank you so much