![]() |
|
There's more than one way to do things | |
PerlMonks |
Re^2: Is there any way to override "file test operator"?by QM (Parson) |
on Mar 20, 2018 at 09:59 UTC ( #1211287=note: print w/replies, xml ) | Need Help?? |
Why can't the OP decide to make a smarter file test operator? Maybe instrument it, or log something, or count gumdrops? Or maybe he has a new file system idea, where there are virtual files, and they only show up with special juju magic? Or an evil twin has renamed some files with a specific pattern, and the code needs to test for both possibilities?
Sure, outside of that, it's probably not a good idea. -QM
In Section
Seekers of Perl Wisdom
|
|