Stories
Slash Boxes
Comments

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Thursday August 23, 2007
10:26 AM

Stupid Error

[ #34189 ]

I hate it when I make silly mistakes like this:

my $pivot_date = DateTime->new(
    year  => 2006,
    month => 08,
    day   => 01,
);

I should know better than that. I was staring at the MySQL datetime format too much :)

Update: In retrospect, I should have entitled this post "Zero errors!"

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Coincidentally, I made that exact error in ruby yesterday. Fortunately, '8' is not a valid octal digit so vim's syntax highlighting alerted me to a problem before I even tried to run it.
  • vim i_ctrl-a will only interpret a leading-zero number as octal if there are only octal digits in it. That is why I only write code in the Vim scripting language. No bugs possible!
    --
    rjbs