export inside perl

2002-10-23 Thread Elanchezhian Sivanandam
hi,
  i did exported some values inside perl (using shell command 
export) but didn't get reflected in the shell after execution of the 
script. How to do it???

thanks

--
cheers../elan

visit www.tamil.net for tamil fonts


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: export inside perl

2002-10-23 Thread John W. Krahn
Elanchezhian Sivanandam wrote:
 
 hi,

Hello,

i did exported some values inside perl (using shell command
 export) but didn't get reflected in the shell after execution of the
 script. How to do it???


perldoc -q environment

Found in /usr/lib/perl5/5.6.0/pod/perlfaq8.pod
   I {changed directory, modified my environment} in a perl
   script.  How come the change disappeared when I exited the
   script?  How do I get my changes to be visible?

   Unix
   In the strictest sense, it can't be done --
   the script executes as a different process
   from the shell it was started from.  Changes
   to a process are not reflected in its parent,
   only in its own children created after the
   change.  There is shell magic that may allow
   you to fake it by eval()ing the script's
   output in your shell; check out the
   comp.unix.questions FAQ for details.


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]