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.
  • If the -* is entered on the command line, in all Unices I've used, the shell will pre-populate the list. To get around it using "-*" will allow the string to be passed as an argument.

    Sorry, I think you've taken my ramblings a bit too literally. I was talking of nailing down the meaning of -name -red. If I apply a simple "things matching /^-/ are commands" rule then that translates to the Perl ->name()->red(), so how would I get to ->name( '-red' ), which is what I really wanted.

    Perhaps you could then specifically check for the wildcard character when reading the arguments and options, and deal with it appropriately.

    File::Find::Rule->name quite happily copes with globbing patterns by delegating to Text::Glob, so we already have that one licked.