~/MyPerl | | |__ src/ |_ mycode.pl | |_ a_program.out #### 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 #### ~/MyPerl $ perl -c src/mycode.pl mycode.pl syntax OK #### ~/MyPerl $ perl src/mycode.pl #### Can't exec "./a_program.out": No such file or directory at src/mycode.pl line 217.