Don't ask to ask, just ask | |
PerlMonks |
Re: Unsuccessfully passing arguments to a bash commandby ikegami (Patriarch) |
on Jun 16, 2013 at 05:02 UTC ( [id://1039174]=note: print w/replies, xml ) | Need Help?? |
$* reflects the args passed to the function, but you didn't pass any! You merely passed some to bash as you executed the bash command untouchable. You want to execute the bash command untouchable john mike bill, which you can do using
or better yet,
The latter launches bash directly instead of launching a sh to launch bash. If the names are variable, you want: or
But running the command you passed to system wouldn't have.
In Section
Seekers of Perl Wisdom
|
|