Dear Members, I am searching for hours in every websites about perl, but havn´t had success...
I just want to start a standard-program from my perlbook (socket-program), but get an error, which is not retraceable for me. Code: (XXX.XXX.XXX.XXX is my IP-adress, which I opt out for privacy reasons)... #!C:/Programme/perl_5.8.2/Perl/bin/perl -w # client.plx use strict; use IO::socket; use diagnostics; my $remote = IO::socket::INET->new( Proto => "tcp", PeerAddr => "XXX.XXX.XXX.XXX", PeerPort => "daytime(13)", ) or die "Kann mich nicht mit dem daytime-Port von XXX.XXX.XXX.XXX verbinden!"; while ( $remote ) { print } Errormessage: Can't locate object method "new" via package "IO::socket::INET" (perhaps you forgot to load "IO::socket::INET"?) at C:\Programme\perl_5.8.2\Perl\uebungen\client.plx line 8 (#1) My @INC - Var. is correct and I could start all programs throuhout the book (now I reached the appendix of "Introduction to PERL". In the LIB-Paths exists: C:\Programme\perl_5.8.2\Perl\lib\IO\Socket\INET.pm and herein you find the function new(). Something else, if you start the compiler with the -w option you´ll get diverse messages like these: Subroutine import redefined at C:/Programme/perl_5.8.2/Perl/lib/IO/Socket.pm lin e 30. Subroutine new redefined at C:/Programme/perl_5.8.2/Perl/lib/IO/Socket.pm line 4 0. Subroutine register_domain redefined at C:/Programme/perl_5.8.2/Perl/lib/IO/Sock et.pm line 54. Subroutine configure redefined at C:/Programme/perl_5.8.2/Perl/lib/IO/Socket.pm line 59. Ambiguous call resolved as CORE::socket(), qualify as such or use & at C:/Progra mme/perl_5.8.2/Perl/lib/IO/Socket.pm line 80. Subroutine socket redefined at C:/Programme/perl_5.8.2/Perl/lib/IO/Socket.pm lin e 76. Ambiguous call resolved as CORE::socketpair(), qualify as such or use & at C:/Pr ogramme/perl_5.8.2/Perl/lib/IO/Socket.pm line 96. Subroutine socketpair redefined at C:/Programme/perl_5.8.2/Perl/lib/IO/Socket.pm line 90. Ambiguous call resolved as CORE::connect(), qualify as such or use & at C:/Progr amme/perl_5.8.2/Perl/lib/IO/Socket.pm line 114. Ambiguous call resolved as CORE::connect(), qualify as such or use & at C:/Progr amme/perl_5.8.2/Perl/lib/IO/Socket.pm line 124. I truncated this, there is nothing new, without that which I outlined under "Errormessage:" Does anyone know about this ? Because I am new to this group, please send your reply also to [EMAIL PROTECTED] THANK YOU VERY MUCH FOR HELP !!! Posty Mit schönen Grüßen von Yahoo! Mail - http://mail.yahoo.de -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>