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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
There is worse precedent (Score:1)
Most shells will invoke
fooand pass a literalbar.*as the first argument if you runfoo bar.*if nothing in the current directory matchesbar.*. In bash since 2.something you canshopt -s failglobto prevent this.But then the shell will also refuse to let you run
foo bar.* baz.*if eitherbar.*orbaz.*fail, when really you probably only wanted it to refuse if both fail. So basically you want the behaviour ofshopt -s nullglobwhen there’s more than one glob.Or at least, you want that behaviour most of the time.
Defaults: It’s Tricky To Get Them Right.
Reply to This