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.
  • nobody (and I mean, really, nobody) ever uses these operators in scalar context

    I'm not saying it's common, but I've certainly used those operators in scalar context.

    while (<SOMEFILE>) {
      print if 10 .. 20;

    Or perhaps:

    while (<SOMEFILE>) {
      print if /START/ ... /END/;