in reply to pass perl variable to shell script
You could write your variables into a file and evaluate the file afterwards.
Or if you don't need the stdout of your program for an other purpose, write to stdout the value of the variable in the syntax of shell assignment, and use "eval" on the output of your Perl program, i.e. something like
eval `perl .....`
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pass perl variable to shell script
by arthurs (Novice) on Aug 11, 2010 at 15:09 UTC | |
by rovf (Priest) on Aug 12, 2010 at 07:37 UTC |