What is the difference between "perl test.pl" and "./test.pl"?

Viewed 951

I have observed that there are two ways of executing a perl program:

perl test.pl

and

./test.pl

What is the exact difference between these two and which one is recommendable?

6 Answers
Related