Great that you figured it out on your own!
NB: This kind of code generation is prone to ugly bugs on the long run.
You should really consider AnoMonks' suggestions to pass data either via @ARGV or %ENV.
In reply to Re^3: assigning a perl variable in shell
by LanX
in thread assigning a perl variable in shell
by scheidr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |