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");In reply to Re: Problem with Perl 'system' comand
by lorn
in thread Problem with Perl 'system' comand
by bkimelman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |