[ANNOUNCE] London.pm Dim Sum, Wednesday 3rd March, Docklands

Sue Spence virtuallysue at gmail.com
Tue Mar 4 17:07:14 GMT 2014


On 4 March 2014 16:43, Mark Fowler <mark at twoshortplanks.com> wrote:

> On Tuesday, March 4, 2014, Sue Spence
> <virtuallysue at gmail.com<javascript:_e(%7B%7D,'cvml','
> virtuallysue at gmail.com');>>
> Wrote:
>
>     my $dt = DateTime->new(
> >         year      => $year,
> >         month     => 03,
> >         day       => 03,
> >    );
> >
>
> Why are you using octal numbers here? It's all fun and games till someone
> writes 09...



Oops. There was a somewhat related error in K&R C 1st ed (I think), in
which a number like 0x89 appeared in the text.  I believe it was described
in the errata as "everyone's favorite mistake"  :-)


More information about the london.pm mailing list