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.
  • Is that missing something? Unless I misinterpret the intent, shouldn’t there be a call that reads a directory’s content somewhere?

    And wouldn’t a do {} block do in place of the outer sub{}->()? You’re not passing any parameters (which is when that bit of voodoo is useful), after all.

    • by rjbs (4671) on 2005.06.09 7:06 (#41007) Homepage Journal
      A "do" would be better, yes. The something to read the directory content is apparently being eaten by slashcode/html. After the grep is "$_[0]*" in a diamond glob operator.
      • Ah. Try using <ecode></ecode> tags for blocks of code, or otherwise, use &lt; for literal opening angle brackets.

        • Aha! Yes, thanks. I don't know why I forgot to use ecode!

          I should probably just use File::Find, but I like this silly hack.