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.
  • by Cine (2588) on 2002.06.05 15:51 (#9215)
    /$1/ my $old1 = $1; /$old1/ # must use temporary here
    have been
    /$1/ my $old1 = $1; // # must use temporary here
    • ARG, it ate my < > even in plain text...
      /$1/ my $old1 = $1; /<$old1>/ # must use temporary here
      • In general, when matching against backreferences, you want to match it literally, not as if it were regex. So you wouldn't want the angles.
    • And in the perl5 compat section:
      /pat\s*pat/ /:w pat pat/ # match word sequence
      Should have been
      /pat\s+pat/ /:w[]pat pat/ # match word sequence
      or what?
      and thus
      /pat\s*pat/ should have been converted to /pat\s*pat/