[Ilugc] [OT] shell "export" inside perl

  • From: linuxmani@xxxxxxxxxxxxx (Manikandan.P)
  • Date: 23 Oct 2002 13:17:45 +0530

On Wed, 2002-10-23 at 23:05, Elanchezhian Sivanandam wrote:

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, email ilugc-request@xxxxxxxxxxxxxxxxxx with 
"unsubscribe <password> address"
in the subject or body of the message.  
http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc


Hi
 this will not work because .the perl interpreter spawns a new shell to
run all ur export commands which will only be available  to the 
sub-shells spawned by ur process.in your case u r trying to access the
variable that is exported in a child from a parent. 

Manikandan.P

-- 
 # delete leading angle bracket & space from each line (unquote a
message)
 sed 's/^> //'


Other related posts: