That's for the bash shell. Adjust as needed for other shells.[xorl@mybox]$ MYVAR = `myperlprog.pl` [xorl@mybox]$ echo $MYVAR stored output stored [xorl@mybox]$
Is this really a perl question? Even I'm not sure what exactly you're trying to do and I'm usually good at guessing what people are actually asking.
In reply to Re: Reading programs output into a Scalar - How?
by xorl
in thread Reading programs output into a Scalar - How?
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |