Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

To the wise: I am making a client prog that connects to a server .To monitor the response from the server I tried to use the IO::Select module . But on run time the prog dies with the message :- Can't use an undefined value as a symbol reference at /usr/lib/perl5/perl5.6.0/i386-linux/IO/Select.pm line 60 Please help ..very soon

Replies are listed 'Best First'.
Re: IO::Select error
by virtualsue (Vicar) on May 25, 2002 at 08:47 UTC
    Please post the code. Given the above, the only 'help' we can provide is to say "You can't use an undefined value as a reference". :^)
Re: IO::Select error
by alien_life_form (Pilgrim) on May 25, 2002 at 16:13 UTC
    Greetings,

    ...and while you follow virtualsue's suggestion, take 5 minutes to pepper your code with print statements and error checking clauses, such as:

    #turning this... my $sock=Io::Socket->new(...); #into this my $sock=Io::Socket->new(...) or die('foo!');
    With a 99% chance, you are forgetting a check like the one above.
    Cheers,
    alf
    You can't have everything: where would you put it?