So if you only have to pass one value you simply print it to standard output in Perl.
If you must pass more than one variable you e.g. print them in a certain format "$var1=$var2=$var3" and parse that on the shell side.#in perl-script "script.pl" print $variable; #in the shell-script: variable=$(perl script.pl) echo $variable
In reply to Re^3: pass perl variable to shell script
by morgon
in thread pass perl variable to shell script
by arthurs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |