in reply to Re: environment variable
in thread environment variable

7.1 as in RedHat 7.1? system() should inherit your %ENV variables as said before. But if your C program requires that you input something and get something out of it then it might be more appropriate to use IPC::Open3.
use strict; use IPC::Open3; $ENV{'LD_LIBRARY_PATH'} = '/usr/local/lib'; $COMMAND = '/some/c/proggie -w -options'; my ($read,$write,$error); my $pid = open3($read,$write,$error,$COMMAND); if ($pid) { # do stuff } else { # croak, bitch and complain }