Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

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.
  • Very nice article, I liked it.

    A question, though: I admit I don't understand all the magic behind overloading constants, but shouldn't the example on page 2

    return __PACKAGE__->new($_[0]) || $_[1]
    be testing the result of the constructor call with defined()? Is it possible, with all the overloading going on, that the result of new('0/1') would be interpreted as a number 0 and thus appear to fail?