Mask has asked for the wisdom of the Perl Monks concerning the following question:
But in line 533 i have next code:Server socket ready, accepting... at qd.pl line 530 Can't use an undefined value as a symbol reference at qd.pl line 533
How can it be that error message in log file(Can't use an undefined value as a symbol reference) is different from "die" message in the code(cannot get flags for socket: $!)?529>if( $ready_socket==$server ) { # Incomming connection 530> warn "Server socket ready, accepting..."; 531> my $new_connection=$server->accept(); 532> # make the socket non-blocking 533> my $flags = fcntl($new_connection, F_GETFL, 0) 534> or die "cannot get flags for socket: $!\n"; .....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error message in log file is different from "die" message in code.
by Aristotle (Chancellor) on May 07, 2003 at 12:57 UTC | |
by halley (Prior) on May 07, 2003 at 14:04 UTC | |
by Mask (Pilgrim) on May 07, 2003 at 13:14 UTC | |
by Aristotle (Chancellor) on May 07, 2003 at 14:25 UTC | |
|
Re: Error message in log file is different from "die" message in code.
by Skeeve (Parson) on May 07, 2003 at 12:38 UTC | |
by Mask (Pilgrim) on May 07, 2003 at 12:40 UTC | |
by Skeeve (Parson) on May 07, 2003 at 12:42 UTC |