Re: problams with IO::Socket::INET
Tom Christiansen (tchrist@jhereg.perl.com)
Wed, 28 Jan 1998 08:10:12 -0700
>> print STDERR "stuff\n";
>>is *not* a method call, and cannot be coerced to be such.
>This is not so obvious to the user who sees that if they say:
> use FileHandle;
> STDERR->print("stuff\n");
>It does the same thing.
>The fact that FileHandle (used to anywayz?) implemented print() in terms of
>print() is completely unknown to the user. (In fact my first assumption the
>first time i saw it was YES they finally moved filehandles into proper first
>class objects.... and then later "ohhh... that sucks" hehe)
Have you ever menchmarked the difference between these:
print STDERR "stuff\n";
STDERR->print("stuff\n");
It'll blow your mind.
--tom