pgmer6809 has asked for the wisdom of the Perl Monks concerning the following question:
This simple code
Works if I run: perl tst_useDT.pl But if I just type: ./tst_use_DT.pl I get an error:#/usr/bin/perl # use DateTime; print "DateTime Loaded\n"; exit 77 ;
./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
Back to
Seekers of Perl Wisdom