Search Results

Search: Posts Made By: hcbhatt
35,919
Posted By hcbhatt
Thanks! It worked. I'll read further on...
Thanks! It worked.

I'll read further on typeset, as you mention it to be good coding habit ... and also especially after reading usage of typeset -r i

Thanks again to all who replied !
35,919
Posted By hcbhatt
I have tried export $MY_VARIABLE and then...
I have tried
export $MY_VARIABLE

and then reading $MY_VARIABLE in perl program. I didnt get any value!

I tried as command line argument, however since I already have one file as input...
35,919
Posted By hcbhatt
Passing Value from Shell to Perl
Hi All,

I am calling a perl program in my shell script as follows.

MY_IN_FILE=ABC.dat
MY_OUT_FILE=XYZ.dat
MY_VARIABLE="SomeValue"

perl mycode.pl $MY_IN_FILE > $MY_OUT_FILE

Question:- ...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy