neversaint has asked for the wisdom of the Perl Monks concerning the following question:
Currently in mycode.pl, I have~/MyPerl | | |__ src/ |_ mycode.pl | |_ a_program.out
Although I have no problem running the following:use strict; use warnings; my @output = `./a_program.out -f someparam`; # line 217 # This also does not work # my @output = `home/myname/MyPerl/src/a_program.out -f someparam`; chomp @output; # do something with @output # Rest of the code
But I have problem when doing this:~/MyPerl $ perl -c src/mycode.pl mycode.pl syntax OK
It gives:~/MyPerl $ perl src/mycode.pl
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?Can't exec "./a_program.out": No such file or directory at src/mycode.pl line 217.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Backtick and problem with setting path within it
by ikegami (Patriarch) on Jun 04, 2006 at 05:28 UTC |