in reply to Unexpected behavior of function 'say'
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unexpected behavior of function 'say'
by tobyink (Canon) on Mar 05, 2013 at 15:32 UTC | |
by LanX (Saint) on Mar 05, 2013 at 15:48 UTC | |
by ikegami (Patriarch) on Mar 06, 2013 at 04:55 UTC |