Slash Boxes
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.
More | Login | Reply
Loading... please wait.
  • Reinventing Perl Arrays? That's nothing. When I was a wee lad, we had to reinvent the bit every morning before breakfast, and reinvent symbol tables every night before supper. And if we were really lucky, we'd only get beaten five times instead of the usual twenty.

    Seriously though, a former colleague of mine had a better horror story. It went something like this:

    $index = "";
    $element_count = $#array + 1;
    open(TEMP, ">temp.file");
    for( $index = 0; $index < $element_count; $i++) {

  • I reinvented hashes in Java. I didn't know that they already existed in the standard library, so wrote my own, which was hideously inefficient as it was just two parallel arrays of keys and values.