That's a ksh question, not Perl.
I suppose you need to escape the \$vars from shell interpolation before passing them.
But I won't test cause it's
Please see how (not) to ask a question
In reply to Re: assigning a perl variable in shell
by LanX
in thread assigning a perl variable in shell
by scheidr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |