While using STDOUT is understood by the Perl interpreter as a clear filehandle, it isn't understood as such by any code that tries to parse the same function calls, like Test::MockFile that overrides open but the prototypes used cannot really mimick the perl parsing.
Using *STDOUT is understood by both perl and any code that uses overrides open.
While using
STDOUT
is understood by the Perl interpreter as a clear filehandle, it isn't understood as such by any code that tries to parse the same function calls, likeTest::MockFile
that overridesopen
but the prototypes used cannot really mimick the perl parsing.Using
*STDOUT
is understood by both perl and any code that uses overridesopen
.