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.
  • by rjray (1649) on 2006.03.03 19:06 (#46442) Homepage Journal
    Well, this is a stab in the dark, but when I see -1 being used in a fetch-from-array context, I tend to assume it's counting from the end of the array, not being treated directly as an index. Other than that, you aren't checking whether you're called on a reference or statically, which leads me to think that "ident $self" might not always return what you expect it to return.
    --

    --rjray

    • Trust me. Once you see the bug, it's a forehead slapper -- if you've encountered this behavior before. It's something that folks often miss because it occurs so rarely, but it's a natural consequence of how Perl behaves.