Your script is not in your PATH, so you can not execute it
with simply typing its name, you have to give the full path
like /path/to/myperlscript or ./myperlscript (if myperlscript
is in the current directory)
For my part, I created a bin directory in my $HOME and
added it to my PATH in my ~/.bashrc file :
Code:
export PATH=$HOME/bin:$PATH
So I simply put all my scripts here and I can execute them
with their name at command line (without the period or
the full path)