G
gundalav
Hi all,
I have the following directory structure for storing my code and
one binary executable use by the Perl's code.
~/MyPerl
|
|
|__ src/
|_ mycode.pl
|
|_ a_program.out
Currently in mycode.pl, I have
__BEGIN__
use strict;
use warnings;
my @output = `./a_program.out -f someparam`; # line 217
chomp @output;
# Rest of the code
__END__
Although I have no problem running the following:
~/MyPerl $ perl -c src/mycode.pl
mycode.pl syntax OK
But I have problem when doing this:
~/MyPerl $ perl src/mycode.pl
It gives:
Can't exec "./a_program.out": No such file or directory at
src/mycode.pl line 217.
I've tried setting full path under backtick also but it still give the
same error.
What's wrong with my path setting under backtick? Did I miss anything?
I have the following directory structure for storing my code and
one binary executable use by the Perl's code.
~/MyPerl
|
|
|__ src/
|_ mycode.pl
|
|_ a_program.out
Currently in mycode.pl, I have
__BEGIN__
use strict;
use warnings;
my @output = `./a_program.out -f someparam`; # line 217
chomp @output;
# Rest of the code
__END__
Although I have no problem running the following:
~/MyPerl $ perl -c src/mycode.pl
mycode.pl syntax OK
But I have problem when doing this:
~/MyPerl $ perl src/mycode.pl
It gives:
Can't exec "./a_program.out": No such file or directory at
src/mycode.pl line 217.
I've tried setting full path under backtick also but it still give the
same error.
What's wrong with my path setting under backtick? Did I miss anything?