pgmer6809 has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: use DateTime gives error
by haukex (Archbishop) on Mar 20, 2021 at 05:33 UTC | |
by pgmer6809 (Sexton) on Mar 20, 2021 at 15:58 UTC | |
by haukex (Archbishop) on Mar 20, 2021 at 21:40 UTC |