rendler has asked for the wisdom of the Perl Monks concerning the following question:
But the problem is now I'm reciveing warnings from the sub itself: Use of uninitialized value in pattern match (m//) at ./monkcb line 215.while ($client) { sysread($client, $incoming, 1024); process_incoming(split /\n|\r/, $incoming); undef $incoming; sleep 1; }
Of course line 215 is the initial match.sub process_incoming { my (@incoming) = @_; return unless @incoming; for my $incoming (@incoming) { if ($incoming =~ /^JOIN (#\w+)/i) { .........
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Uninitialized array woes.
by Zaxo (Archbishop) on Aug 26, 2002 at 04:47 UTC | |
by rendler (Pilgrim) on Aug 26, 2002 at 05:29 UTC | |
Re: Uninitialized array woes.
by tadman (Prior) on Aug 26, 2002 at 09:02 UTC | |
Re: Uninitialized array woes.
by Django (Pilgrim) on Aug 26, 2002 at 04:37 UTC |