Does anyone know how to set an shell enviroment using perl? I have tried using the 
backticks, the system command, but they
don't seem to be working. I found ENV{'FLEE'} = 'FLEE'; online, but I don't understand 
how that works. It sets your enviroment for
a child process but won't change your current environment, is that right?  If anyone 
has suggestions I am all ears.

thanks,

-T



sub setEnviro {
  my($var1, $var2) = @_;
  print "INSIDE FLEE: $var1\n";
  print "INSIDE FLAA: $var2\n";
      #system ("FLEE=$var1");    ##ALL lines below don't seem to work. . .
      #system("FLAA=$var2");
   
   #$ENV{'FLEE'} = 'FLEE';
   #$ENV{'FLOO'} = 'FLAA';
  `echo $FLEE`;
  `echo $FLAA`;

Reply via email to