accept is for listening sockets, i.e. servers. Your constructor usage, however, looks like you want to connect to an existing service. This is why the accept call fails and returns undef. (If you had checked for errors, you'd have gotten "Invalid argument" in $!)
See perlipc for examples of client-side code.
In reply to Re: Problem with Socket Programming Perl Script
by Anonyrnous Monk
in thread Problem with Socket Programming Perl Script
by ashok.g
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |