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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kat248637
    New Member
    • Dec 2008
    • 3

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

    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
  • kat248637
    New Member
    • Dec 2008
    • 3

    #2
    use the value of variable of sh script into perl script

    how to access the value of variable of sh script into perl script





    thanks in advance

    Comment

    • eWish
      Recognized Expert Contributor
      • Jul 2007
      • 973

      #3
      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

      Comment

      • Ganon11
        Recognized Expert Specialist
        • Oct 2006
        • 3651

        #4
        It looks like you want either the %ENV variable, or the Env package. Try:

        perldoc Env
        Using a Module

        Comment

        • KevinADC
          Recognized Expert Specialist
          • Jan 2007
          • 4092

          #5
          ask on The UNIX and Linux Forums - the Top UNIX & Linux Q&A on the Web in the shell scripting forum

          Comment

          Working...