I have a little perl script that I can't execute properly. The problem
is making it executable, not the script itself.
Here is what I am doing: the script is sitting in a directory 'bin' in
my home directory. It's executable, and my PATH is set to include
/home/uuser/bin:
m2:~$ cd
m2:~$
m2:~$ ls -l | grep bin
drwxr-xr-x 2 uuser sndusrs 4096 Feb 14 02:09 bin
m2:~$
m2:~$ ls -l bin
total 16
-rwxr--r-- 1 uuser sndusrs 5387 Feb 14 02:08 rgrep.pl
m2:~$ echo $PATH
/usr/local/bin/ <snip> /home/uuser/bin
But when I try to execute it, I get:
m2:~$ rgrep.pl
bash: /home/uuser/bin/rgrep.pl: No such file or directory
What am I doing wrong?
Thanks!