require "sys/socket.ph";



Dear All,

I am facing one problem if any body knows the solution please let me know.



file name : ch.pl..

use Socket;

require "sys/socket.ph"; # for &TCP_NODELAY

socket (SERVER, AF_INET, SOCK_STREAM,0); setsockopt(SERVER, SOL_SOCKET,
&TCP_NODELAY, 1)

or die "Couldn't disable Nagle's algorithm: $!\n";





when the file is compiled, it's throwing error like this..

Scalar found where operator expected at (eval 148) line 1, near "'int'

$__val"

(Missing operator before $__val?)

Undefined subroutine &main::__LONG_MAX__ called at (eval 316) line 1.

Compilation failed in require at

/usr/lib/perl5/5.8.1/i386-linux-thread-multi/sys/socket.ph line 11.

Compilation failed in require at ch.pl line 2.



Thanks in Advance



Thanks & Regards

-Gayatri


***************************NOTE***********************************************
Deccanet Designs Ltd is now Flextronics Design Ltd, India
******************************************************************************



*************************DISCLAIMER*******************************************
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege of Flextronics Design Ltd.
If you have received this message in error, please notify the originator
immediately. If you are not the intended recipient, you are notified that
you are strictly prohibited from retaining, using, copying, altering or
disclosing the contents of this message.
******************************************************************************


Relevant Pages

  • BIND 9.5.2b1 is now available.
    ... BIND 9.5.2b1 is a maintenance release for BIND 9.5. ... triggering an assertion failure in ... API and glibc hides parts of the IPv6 Advanced Socket ... need to tweak ISC_SOCKET_MAXSOCKETS at compilation time ...
    (comp.protocols.dns.bind)
  • RE: require "sys/socket.ph";
    ... To: Perl Beginners ... Remove that line and it should work (TCP_NODELAY is included in the Socket ... Deccanet Designs Ltd is now Flextronics Design Ltd, ... If you are not the intended recipient, ...
    (perl.beginners)