in reply to Re^4: perl 5.12 BSD portability (CPAN test result)...print
in thread perl 5.12 BSD portability (CPAN test result)...print
But only in the FH->print format? Why does it work in the print FH mode? Aren't they supposed equivalent?
No, they're not equivalent. print FH ... is an instance of a the print operator.
FH->print(...) is a method call. It does whatever FH's class's print method does. If FH is an IO::Handle or IO::File object, its print method calls the print operator.
sub print { @_ or croak 'usage: $io->print(ARGS)'; my $this = shift; print $this @_; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: perl 5.12 BSD portability (CPAN test result)...print
by perl-diddler (Chaplain) on Mar 15, 2013 at 21:29 UTC | |
by ikegami (Patriarch) on Mar 16, 2013 at 18:35 UTC | |
by perl-diddler (Chaplain) on Mar 16, 2013 at 20:06 UTC | |
by chromatic (Archbishop) on Mar 17, 2013 at 00:03 UTC | |
by perl-diddler (Chaplain) on Mar 20, 2013 at 03:15 UTC | |
by ikegami (Patriarch) on Mar 19, 2013 at 01:21 UTC |
In Section
Seekers of Perl Wisdom