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, pgmer6809In reply to use DateTime gives error by pgmer6809
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |