in reply to extreme newbie question

It sounds like the current directory isn't in your path, they ./scriptname.pl. If that works you know your problem is a missing . in your path.