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.
  • Full support (Score:2, Insightful)

    For the record you have my full support on the use of map in void context. I use if quite often and even find a certain pleasure knowing that it would not pass a certain guru []'s code reviews ;--).

    • Re:Full support (Score:2, Informative)

      In case anyone doesn't know and cares, map in a void context is now optimized to not return any values, so it's no longer de facto inefficient.
      • by Matts (1087) on 2002.04.17 9:03 (#7163) Journal
        I did know, but I didn't know when it was fixed. Do you know which perl fixed that?
        • My guess is 5.6.0. But I am not sure.
          • Various people in the latest TPR golf tournament, including me, had problems related to huge memory usage caused by map() in a void context. The same programs worked fine with for(). We were using 5.6.1.

            I didn't think much about it because I didn't know the optimization was supposed to have been done. Plus we all found shorter solutions later on that didn't have the memory problem.