By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,710 Members | 1,970 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,710 IT Pros & Developers. It's quick & easy.

how to use value of variable written in shell script in perl script

P: 3
suppose i have a variable in shell script like a="prashant"
and i want to assign this variable into another variable like b=$a,which is in perl script.after run perl script the value of b should be "prashant".


thanks in advance
Dec 1 '08 #1
Share this Question
Share on Google+
4 Replies


P: 3
how to access the value of variable of sh script into perl script





thanks in advance
Dec 2 '08 #2

eWish
Expert 100+
P: 971
kat248637,

I have merged your two threads since they are concerning the same or very similar issue.

I am sorry that I don't have experience with shell scripting and can not offer any suggestions. Hopefully, one of our Experts will be able to assist you.

--Kevin
Moderator
Dec 2 '08 #3

Ganon11
Expert 2.5K+
P: 3,652
It looks like you want either the %ENV variable, or the Env package. Try:

perldoc Env
Using a Module
Dec 2 '08 #4

KevinADC
Expert 2.5K+
P: 4,059
ask on The UNIX and Linux Forums - the Top UNIX & Linux Q&A on the Web in the shell scripting forum
Dec 3 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.