Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

shell scripting and programmming

Shell Programming and Scripting


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-01-2011   -   Original Discussion by harjinder
harjinder's Unix or Linux Image
harjinder harjinder is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 9 February 2015, 12:23 AM EST
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
shell scripting and programmming

how to set shell env variable from perl script ??
Sponsored Links
    #2  
Old Unix and Linux 03-01-2011   -   Original Discussion by harjinder
clx's Unix or Linux Image
clx clx is offline Forum Advisor  
Registered User
 
Join Date: Jun 2007
Last Activity: 30 November 2017, 5:46 AM EST
Location: Mumbai, India
Posts: 1,690
Thanks: 138
Thanked 205 Times in 199 Posts
%ENV contains all the environment variable details.
So you could add/modify the key/value of this hash as you normally do in hashes.

e.g setting env variable TEST


Code:
$ENV{'TEST'} = 'some_value';



Please use proper subject while posting your problems. ( rule #11)

Last edited by clx; 03-01-2011 at 08:24 AM.. Reason: suggestion about subject.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
shell scripting and programmming harjinder Shell Programming and Scripting 1 02-04-2011 01:48 AM
shell scripting and programmming harjinder Shell Programming and Scripting 10 02-02-2011 05:02 AM
Call Shell scripting from Perl Scripting. anupdas Shell Programming and Scripting 2 02-12-2010 08:07 AM
I am a newb to the C programmming language how do I make it interesting? yunusabd786 Programming 6 11-01-2008 03:27 PM
difference between AIX shell scripting and Unix shell scripting. haroonec Shell Programming and Scripting 2 04-12-2006 09:12 AM



All times are GMT -4. The time now is 12:10 AM.