Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Perl network programming

by naikonta (Curate)
on Oct 03, 2007 at 07:41 UTC ( #642321=note: print w/replies, xml ) Need Help??

in reply to Perl network programming

It's hard to tell exactly since you didn't show us your code. But I guess that you pass in undefined value or empty value (the second arg for IP) to the Socket::pack_sockaddr_in function. You may need to say,
my $port = 8080; my $ip = ''; my $sockaddr = pack_sockaddr_in($port, inet_aton($ip));

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://642321]
[sierpinski]: thanks LanX that helps
[haukex]: the first index is always 0 - $#array gives you the last index in @array
[sierpinski]: gotcha, thanks
[LanX]: length = last index +1

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2017-12-13 16:06 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (369 votes). Check out past polls.