LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-06-2003, 06:59 AM   #1
Elez
LQ Newbie
 
Registered: Apr 2003
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
Question weird problem...


my code is:
....
my $conn = $irc->newconn(
Server => '$server',
Port => shift || '6667',
Nick => 'sickbot',
Ircname => 'bot',
Username => 'bot'
)
or die "Can't connect to IRC server.\n";
...

this give error:
Use of uninitialized value in subroutine entry at /usr/lib/perl5/5.8.0/i386-linux/Socket.pm line 373.
Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at /usr/lib/perl5/5.8.0/i386-linux/Socket.pm line 373.

this worl fine if i change Server => 'irc.quakenet.org',

what's wrong?
 
Old 05-06-2003, 10:48 AM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
Wink

perl code:
-------------------------------
$t='test';
print $t; print "\n";
print "$t"; print "\n";
print '$t'; print "\n";
</pre>
-------------------------------

result:
-------------------------------
test
test
$t
---------------

--> use "$server" instead of '$server' in line 2 ( unless your server is named $server.mydomain.org :-)

Last edited by AltF4; 05-06-2003 at 10:49 AM.
 
Old 05-06-2003, 10:54 AM   #3
Elez
LQ Newbie
 
Registered: Apr 2003
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
i try that but i get same error...then i find spaces at first on string (and install newest net::irc)
now all works fine
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
weird, weird problems with logitech precision USB gamepad ikataii Linux - Hardware 4 10-14-2005 04:31 AM
Weird, weird apache2 problem atheist Debian 1 09-17-2004 08:26 PM
weird problem !!!! falcon1959 Linux - Newbie 1 09-11-2004 07:18 AM
weird kernel problem and fs mount problem intense Slackware 5 03-16-2004 12:36 PM
weird problem saturn_vk Linux - General 1 02-16-2003 06:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration