He wants to affect the environment of the process he's calling.
Try this:
$frazzle = 'exported string';
$ENV{'FRAZZLE'} = $frazzle;
$output = `ksh -c \'print \$FRAZZLE\'`;
print $output;
On Thu, 4 Oct 2001, Brett W. McCoy wrote:
> On Thu, 4 Oct 2001, Kingsbury, Michael wrote:
>
> > Is there a way to export perl variables for use when run in backticks?
>
> What do you mean? Variables interpolate inside of backticks (unless you
> are silly enought to do qx'', and then they won't).
>
> -- Brett
> http://www.chapelperilous.net/
> ------------------------------------------------------------------------
> The only cultural advantage LA has over NY is that you can make a right
> turn on a red light.
> -- Woody Allen
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]