i input these words into a file: hello.pl and chmod its property:
chmod +x hello.pl
i use:
which perl
know that perl is in: /usr/bin/perl and modify it in the hello.pl
but: hello.pl can't run.
says: -bash: hello.pl: command not found
who knows why?please tell me.
another choise:
1.execute your progame like this $ perl hello.pl
2.export your path to @env
in bash you can do it like this :export PATH ./your program path
now you can just run your program like $hello.pl