sidmuchrock has asked for the wisdom of the Perl Monks concerning the following question:
So I was a perl 4 person for years, played in 5, scared of 6. Went to do something smarter than the old way today with dates. Old way is I would have created a @months=('January', etc.) Not even a qw as I'm that old. Anyway decided I'd go a bit more modern and use Date::Manip.pm but its not there. Okay add it. Wait strict isn't there?! My @INC doesn't seem to be playing right. Thoughts? Lemme add more danger. Strict was there earlier today as I used cpan to add DateTime. but it wouldn't install unless I used sudo cspan DateTime. It/I borked my @INC somehow. Wise Monks, what you got?
[SiDMBP2:~] urinine% perl dog2.pl Can't locate Date/Manip.pm: Permission denied at dog2.pl line 1. BEGIN failed--compilation aborted at dog2.pl line 1. [SiDMBP2:~] urinine% locate Manip.pm [SiDMBP2:~] urinine% cpan Manip.pm Can't locate strict.pm: Permission denied at /usr/bin/cpan5.18 line +7. BEGIN failed--compilation aborted at /usr/bin/cpan5.18 line 7. [SiDMBP2:~] urinine% locate strict.pm /System/Library/Perl/5.18/strict.pm [SiDMBP2:~] urinine% perl -e 'print(join("\n", @INC))' /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.4 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Issue with @INC
by dave_the_m (Monsignor) on Oct 14, 2019 at 18:16 UTC | |
by sidmuchrock (Novice) on Oct 14, 2019 at 18:43 UTC | |
by dave_the_m (Monsignor) on Oct 14, 2019 at 19:46 UTC | |
by jcb (Parson) on Oct 16, 2019 at 22:39 UTC | |
|
Re: Issue with @INC
by marto (Cardinal) on Oct 14, 2019 at 18:11 UTC | |
by sidmuchrock (Novice) on Oct 14, 2019 at 19:24 UTC | |
by marto (Cardinal) on Oct 14, 2019 at 19:45 UTC | |
|
Re: Issue with @INC
by 1nickt (Canon) on Oct 14, 2019 at 20:11 UTC | |
by marto (Cardinal) on Oct 14, 2019 at 20:21 UTC | |
|
Re: Issue with @INC
by holli (Abbot) on Oct 14, 2019 at 17:09 UTC | |
|
Re: Issue with @INC
by karlgoethebier (Abbot) on Oct 14, 2019 at 17:38 UTC |