|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re^3: using wildcard character * in perlscript command lineby shenme (Priest) |
| on Jan 28, 2005 at 15:56 UTC ( #426010=note: print w/ replies, xml ) | Need Help?? |
|
Because glob() will simply pass-thru anything that doesn't need expansion, otherwise it would lose ordinary filenames. But if the 'option' might have the expandable characters '*' or '?' you will be in danger of losing _those_ options. glob('-f?') returns nothing (usually), though glob('-f') will simply return '-f'.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||