Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

environment variable

 
anandkumar biyani
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I wanted to use path to a file in my perl script, so want to store this path in some environment variable and than use this variable as input to my script.

Can anyone help how to create environment variable and use this as a input to my script

Thanks in advance.
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12098
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anandkumar biyani wrote:Hello,

I wanted to use path to a file in my perl script, so want to store this path in some environment variable and than use this variable as input to my script.

Can anyone help how to create environment variable and use this as a input to my script

Thanks in advance.

Creating an environment variable depends on your OS.

To use an environment variable, you can just use the %ENV hash...something like


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic