go ahead... be a heretic | |
PerlMonks |
Re: Is there any way to override "file test operator"?by JavaFan (Canon) |
on Aug 09, 2011 at 08:24 UTC ( [id://919415]=note: print w/replies, xml ) | Need Help?? |
I don't think you can, at least not on a pure Perl level. If you're willing to write -E, or - e, you can write a subroutine named E or e, which then will be called instead (and of whose return value unary minus will be applied).
In Section
Seekers of Perl Wisdom
|
|