in reply to Problem with Perl 'system' comand

Because system comand create another bash process for STDOUT/STDERR, so your local variable probably does not exits.

Try to pass the variable in the system() call, like:

system("LANG=Perl /usr/bin/my_c_program");

Replies are listed 'Best First'.
Re^2: Problem with Perl 'system' comand
by ikegami (Patriarch) on May 26, 2010 at 16:56 UTC
    The environment is usually inherited from the parent