Stories
Slash Boxes
Comments
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.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Hmm (Score:2, Insightful)

    $distro =~ s[-\d+\.\d+\.tar\.gz];
    Hey, that's not a complete statement!
    --
      ---ict / Spoon
    • Ah, but that's because you didn't finish it. You only included the opening semicolon delimiter for the replacement. The complete statement is

      $distro =~ s[-\d+\.\d+\.tar\.gz];
      print $module, " ", $distro, "\n";
      which is the same as
      $distro =~ s/-\d+\.\d+\.tar\.gz/\n    print $module, " ", $distro, "\n"/