--$ cat bite.pl
$ENV{verb}="bite";
system 'echo ${verb}_me';
When I run this I get:
--$ perl bite.pl bite_me
Maybe this will solve the problem?
HTH
| Peter L. Berghold | Brewer of Belgian Ales |
| Peter@Berghold.Net | www.berghold.net |
| Unix Professional | |
In reply to Re: using a set variable in system or exec
by blue_cowdawg
in thread using a set variable in system or exec
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |