You probably left out "use IO::Handle;".
I get the expected output from the following:
use IO::Handle; STDOUT->print("Hello, World\n"); my $fh = \*STDOUT; $fh->print("Hello, World\n");
In reply to Re: Regarding STDOUT and indirect object notation for print
by gmargo
in thread Regarding STDOUT and indirect object notation for print
by romandas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |