New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example in perlbug -f getsockopt incomplete #7797
Comments
From david.dyck@fluke.comCreated by david.dyck@fluke.comThe example given in perldoc -f getsockopt: use Socket; defined(my $tcp = getprotobyname("tcp")) is incorrect, it should declare the constant it intends to import $ perl -wle 'use Socket; print STDOUT Socket::TCP_NODELAY' That was unexpected!!!!!! $ perl -wle 'use Socket; print STDOUT Socket::TCP_NODELAY()' There is probably a similar error in the alternative use of Socket::IPPROTO_TCP I'm not sure why, but the examples use symbols that are in @EXPORT_OK There is no mention in the documentation for Socket that suggests Perl Info
|
From @rgsDavid Dyck (via RT) wrote:
I applied the fix below : ==== //depot/perl/pod/perlfunc.pod#453 (text) ==== @@ -2115,13 +2115,13 @@ An example testing if Nagle's algorithm is turned on on a socket: - use Socket; defined(my $tcp = getprotobyname("tcp")) |
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#34141 (status was 'resolved')
Searchable as RT34141$
The text was updated successfully, but these errors were encountered: