Hold on, that doesn't seem to work. The environment as seen by the perl script is unaffected.
setter.sh:
#!/bin/sh export VAR=SET
script.pl:
#!/usr/bin/perl
system ( ". ./setter.sh" );
print "VAR=$ENV{VAR}\n";
This gives me VAR= and was hoping for VAR=SET
In reply to Re^2: system ( "source $script" )
by ajwood
in thread system ( "source $script" )
by ajwood
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |