nua7 has asked for the wisdom of the Perl Monks concerning the following question:
(rk3388) mpdev1=> ./test1.pl Can't locate Date/Calc.pm in @INC (@INC contains: /home/ss1880/Date-Ca +lc-6.3/li. BEGIN failed--compilation aborted at ./test1.pl line 4.
#!/usr/bin/perl use lib '/home/ss1880/Date-Calc-6.3/lib/Date/'; use Date::Calc; my @today = (localtime)[5,4,3]; $today[0] += 1900; $today[1]++; my @birthday = (1980, 4, 3); my $days = Delta_Days(@birthday, @today); print "I am $days days old\n"; exit 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simple perl question
by toolic (Bishop) on Nov 08, 2012 at 14:05 UTC | |
by nua7 (Initiate) on Nov 08, 2012 at 14:13 UTC | |
by toolic (Bishop) on Nov 08, 2012 at 14:16 UTC | |
by toolic (Bishop) on Nov 08, 2012 at 14:25 UTC | |
by nua7 (Initiate) on Nov 08, 2012 at 14:35 UTC | |
by toolic (Bishop) on Nov 08, 2012 at 14:41 UTC | |
|
Re: Simple perl question
by karlgoethebier (Abbot) on Nov 08, 2012 at 19:31 UTC | |
by toolic (Bishop) on Nov 08, 2012 at 19:54 UTC | |
by karlgoethebier (Abbot) on Nov 08, 2012 at 20:09 UTC | |
by karlgoethebier (Abbot) on Nov 08, 2012 at 21:57 UTC |