Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Simple perl question

by toolic (Bishop)
on Nov 08, 2012 at 19:54 UTC ( #1002970=note: print w/ replies, xml ) Need Help??


in reply to Re: Simple perl question
in thread Simple perl question

Isn't Date::Calc in core?
No (as of perl 5.14):
corelist Date::Calc Date::Calc was not in CORE (or so I think)


Comment on Re^2: Simple perl question
Download Code
Replies are listed 'Best First'.
Re^3: Simple perl question
by karlgoethebier (Vicar) on Nov 08, 2012 at 20:09 UTC

    ...right for my Mac too using v5.12.3:

    Karls-Mac-mini:~ karl$ corelist Date::Calc Date::Calc was not in CORE (or so I think)

    I installed it and forgot about...

      Just to keep my mental health:

      Karls-Mac-mini:Date-Calc-6.3 karl$ perl Makefile.PL PREFIX=/Users/karl +/lib #... Karls-Mac-mini:Date-Calc-6.3 karl$ make && make test && make install #... Karls-Mac-mini:Date-Calc-6.3 karl$ cd Karls-Mac-mini:~ karl$ ls -hlrt lib/ total 0 drwxr-xr-x 3 karl karl 102B 8 Nov 21:57 share drwxr-xr-x 3 karl karl 102B 8 Nov 21:57 lib drwxr-xr-x 3 karl karl 102B 8 Nov 21:57 Library karls-Mac-mini:Date-Calc-6.3 karl$ perl -I/Users/karl/lib/ -MDate::Cal +c -MData::Dumper -e 'print Dumper(Date::Calc::Today_and_Now()).join(q +q(\n),@INC);' $VAR1 = 2012; $VAR2 = 11; $VAR3 = 8; $VAR4 = 22; $VAR5 = 44; $VAR6 = 27; /Users/karl/lib/ /sw/lib/perl5 /sw/lib/perl5/darwin /Library/Perl/5.12/darwin-thread-multi-2level #... karls-Mac-mini:Date-Calc-6.3 karl$ perl -MDate::Calc -MData::Dumper -e + 'print Dumper(Date::Calc::Today_and_Now()).join(qq(\n),@INC);' $VAR1 = 2012; $VAR2 = 11; $VAR3 = 8; $VAR4 = 22; $VAR5 = 42; $VAR6 = 48; /sw/lib/perl5 /sw/lib/perl5/darwin /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 #...

      Seems it finds the right one. Regards, Karl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1002970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (17)
As of 2015-07-07 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (92 votes), past polls