I have a shell script in which I am running perl script by below code.
perl perlscript.pl
In the perl script I have defined a variable called $circle
. Now I want to use this variable value in my shell script. How can I call?
I have a shell script in which I am running perl script by below code.
In the perl script I have defined a variable called |
||||
If your
If the
NOTE: Without more details from you, it's impossible to provide more than generic advice like this. |
|||
|
Just set an environment variable in perl and your shell will find it. In C you can check your path like this
There are also functions for setting your path, so you can set an environment variable for your program in your code. |
|||||||||||||
|
PATH
and set an environment variable. – Dac Saunders May 7 at 8:58