tprizler has asked for the wisdom of the Perl Monks concerning the following question:
I am writing a script in perl. I am trying to set a new local var in the script.
The thing is after the script ends the var is no longer set.
I tried doing this using an external shell script that sets the var but still it didn't worked for me.
The Perl script is:The shell script is:#/usr/bin/perl -w print `. changeShell.sh "/usr/bin"`;
After invoking the perl script the var CLASS_BLB is not set.. Any idea?? Thanks!#!/usr/bin/bash CLASS_BLB=$1 export CLASS_BLB
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to set a shell var from a perl script
by JavaFan (Canon) on Aug 18, 2010 at 12:27 UTC | |
|
Re: Trying to set a shell var from a perl script
by Corion (Patriarch) on Aug 18, 2010 at 12:03 UTC | |
|
Re: Trying to set a shell var from a perl script
by choroba (Cardinal) on Aug 19, 2010 at 16:03 UTC |