http://qs321.pair.com?node_id=11129993

pgmer6809 has asked for the wisdom of the Perl Monks concerning the following question:

This simple code
#/usr/bin/perl # use DateTime; print "DateTime Loaded\n"; exit 77 ;
Works if I run:  perl tst_useDT.pl But if I just type:   ./tst_use_DT.pl I get an error:

./tst_use_DT.pl: line 3: use: command not found

Error: no such file "DateTime Loaded\n"

What could be wrong? I did install DateTime twice; once using sudo to /usr/local and once to my own home directory. Could that be the reason? If so how would I delete the module from my homedirectory? thanks, pgmer6809