Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hello, Monks! Is there any way to override "file test operator", using package? I mean -X one - http://perldoc.perl.org/functions/-X.html if (-e($file_name)) {}It's more than easy to override lot of over functions, using "sub FUNCTION_NAME { }" inside package, but i have no idea what sub name I could use to override "file test operator"? (it's even hard to name correctly here, to ask that question). Any reply would be welcome, so I could at least stop searching. In reply to Is there any way to override "file test operator"? by Anonymous Monk
|
|