in reply to Re^2: Error "undefined value as a symbol reference "
in thread Error "undefined value as a symbol reference "
When you open your socket, you can do something else if it didn't open. For instance, if you wanted the program to end immediately:
my $server = IO::Socket::INET->new ( LocalPort => 8080, Type => SOCK_STREAM, Reuse => 1, Listen => 10) or die ("Can't open socket : $!");
It's a good idea to check anything that has a potential to fail. (opening files, closing files that you've written to, opening database connections, etc.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Error "undefined value as a symbol reference "
by Anonymous Monk on Apr 22, 2005 at 11:59 UTC | |
by gellyfish (Monsignor) on Apr 22, 2005 at 12:22 UTC | |
by Anonymous Monk on Apr 22, 2005 at 12:24 UTC | |
by Anonymous Monk on Apr 22, 2005 at 12:26 UTC | |
by gellyfish (Monsignor) on Apr 22, 2005 at 12:28 UTC |