Now calling <$socket> will only read up to the first ~ character (or EOF).$SIG{ALRM} = sub{die "timeout"}; eval{ alarm($timeout); local $/ = "~"; $line_in = <$socket>; alarm(0); };
blokhead
In reply to Re: Question from socket newbie
by blokhead
in thread Question from socket newbie
by Melly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |