in reply to Perl 5.8, sockets and binmode()
Then replace the binmode with _binmode and everything should happen automagically. The prototype will even cause these calls to be optimized away complete on Perls that don't need them.BEGIN { eval "require 5.008; use open OUT => ':raw:perlio'; sub _binmode() + {}"; eval "sub _binmode { binmode @_ }" if $@; }
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Perl 5.8, sockets and binmode()
by Jenda (Abbot) on Nov 06, 2002 at 20:31 UTC | |
by Aristotle (Chancellor) on Nov 06, 2002 at 20:38 UTC |