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.
  • I should add somthing about $&'s performance issues. That one probably got away because we talked about it in Learning Perl so I figured that we had a footnote on it's downside. Now that I look at Learning Perl, though, I see that we don't and it's just something I talk about in classes.
    • When I wrote my review and looked back on chapter two to make sure my notes weren't wrong, it occurred to me that it would be pretty simple and apropos to stick in just one or two sentences like, "Unfortunately, using $& once can slow down your whole program. Fortunately, you can work around it with substr, @- and @+. You can use those for more more, though, like..."

      To get back to the "stuff a pro knows," I like to think that before using any punctuation variable, a real pro first reads the perlvar docs on it, so this isn't necessarily a big problem for responsible programmers.