You could also create environment variables that the shell will be happy to interpolate for you.
The above is basically the same as$ perl -e'$ENV{host}="localhost"; system $ARGV[0]' 'echo $host' localhost
$ host=localhost sh -c 'echo $host' localhost
In reply to Re: Command Line Arg contains Variable and more (pass the buck)
by ikegami
in thread Command Line Arg contains Variable and more
by VinsWorldcom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |