"be consistent" | |
PerlMonks |
Re^2: Mock/Fake network fileshare for my new modules Test Suiteby Anonymous Monk |
on Aug 27, 2014 at 12:01 UTC ( [id://1098725]=note: print w/replies, xml ) | Need Help?? |
Here's a PerlMonks post in which Athanasius shows how a class can overload -X operations performed on itself (that would require that you use this class for all -s calls). According to this StackOverflow post, overriding the file test operators isn't directly possible. stat can be mocked, but I haven't yet found out if it's possible to affect -X.
In Section
Seekers of Perl Wisdom
|
|