http://www.perlmonks.org?node_id=1021845


in reply to Unexpected behavior of function 'say'

Tip #6 from the Basic debugging checklist: B::Deparse:

use warnings; use strict 'refs'; 'STDOUT'->say('like a charm');

Not that I know what that means, but it is a clue.

Also, when I run the code on 5.12, I get an error:

Can't locate object method "say" via package "IO::File" at ...