Maybe I'm misunderstanding something, but why not simply put the processing in the loop? (together with some condition that detects when a 'packet' is complete)
Something like this:
while (defined(my $line = <$NA_Conn>)) { $input.=$line; if ($input =~ / ... /) { process($input); $input = ''; } }
In reply to Re: Real-time socket data processing
by almut
in thread Real-time socket data processing
by psyk0tic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |