greatshots has asked for the wisdom of the Perl Monks concerning the following question:
when I executed the above code, I got the following errormy $today = Time::Tiny->now; print "Year : " . $today->year . "\n"; print "Month: " . $today->month . "\n"; print "Day : " . $today->day . "\n";
blinking, why it throws that error ?Can't locate object method "year" via package "Time::Tiny" at time_tin +y.pl line 10.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem in getting tody's date using Time::Tiny module
by ysth (Canon) on Sep 18, 2006 at 07:27 UTC | |
|
Re: problem in getting tody's date using Time::Tiny module
by davido (Cardinal) on Sep 18, 2006 at 06:56 UTC | |
|
Re: problem in getting tody's date using Time::Tiny module
by davorg (Chancellor) on Sep 18, 2006 at 15:53 UTC | |
|
Re: problem in getting tody's date using Time::Tiny module
by mikasue (Friar) on Sep 18, 2006 at 15:42 UTC |