vbynagari has asked for the wisdom of the Perl Monks concerning the following question:
and when I do this in my main perl script:export bad_code=bad_codeZ echo "\$bad_code is $bad_code"
the $bad_codeP returns blank. Here is the log: $bad_codeP is what am I missing? Any help is appreciated. thx$bad_codeP = $ENV{"bad_code"}; chomp $bad_codeP; print "\$bad_codeP is $bad_codeP \n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing a variable from shell script to the main perl
by ikegami (Patriarch) on Apr 05, 2011 at 21:48 UTC | |
|
Re: passing a variable from shell script to the main perl
by wind (Priest) on Apr 05, 2011 at 21:42 UTC | |
by vbynagari (Initiate) on Apr 05, 2011 at 22:09 UTC | |
by wind (Priest) on Apr 05, 2011 at 22:13 UTC | |
by vbynagari (Initiate) on Apr 05, 2011 at 22:22 UTC |