Syntactic Confectionery Delight | |
PerlMonks |
Re: DateTime normalizeby Herkum (Parson) |
on Aug 26, 2009 at 03:26 UTC ( [id://791233]=note: print w/replies, xml ) | Need Help?? |
now() is a class method not a object method. When you call it with,
It assumes $result is the package and looks at it as a string. A DateTime object which is used in a string context returns the date in a iso8601 format(by default). If you use it as a class method you should not see an error.
In Section
Seekers of Perl Wisdom
|
|