in reply to How to override a "file test" operator

File test operators are one of those things you cannot override

However, if you make an object of the thing you're using file test operators on, then you can use overload

update: actually, it might be possible to accomplish using B::Generate, but that is PerlAssembly, yuck :)

  • Comment on Re: How to override a "file test" operator