lanx@nc10-ubuntu:~$ perl use strict; use warnings; say STDOUT 'like a charm'; Can't locate object method "say" via package "IO::Handle" at - line 4.
But the last line should lead to the answer.
print FH is (supposed to be) indirect object syntax of the filehandle-object, so somehow the method say was activated by default in your environment.
Anyway calling say w/o FH shouldn't work!
Cheers Rolf
In reply to Re: Unexpected behavior of function 'say'
by LanX
in thread Unexpected behavior of function 'say'
by farang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |