I remembered patching IO::Handle::say , but this will only affect say STDOUT "text" if feature "say" is not activated. Otherwise it's not working.¹
This means the print and say built-ins are only mimicking the indirect object notation and completely ignoring the methods.
Kind of disappointing². :/
But seems like technically you are right.
(While I still remember being able to make it work, I can't find the thread anymore)
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
¹) NB STDOUT->say() will always call the patched version
²) because say $FH and $FH->say will diverge after patching say
In reply to Re^3: Why does "flush filehandle" work? (indirect object)
by LanX
in thread Why does "flush filehandle" work?
by chengiz5
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |