|There's more than one way to do things|
Re: Limit Socket (throttle) to send specific ammount of packets every secondby kcott (Chancellor)
|on Sep 22, 2016 at 08:10 UTC||Need Help??|
Welcome to the Monastery.
Firstly, you can put long tracts of code within <readmore>...</readmore> or <spoiler>...</spoiler> tags: see "Writeup Formatting Tips" for details.
Unfortunately, without seeing the surrounding code, it's difficult to tell what additional code will be appropriate. There may well be better solutions!
Here's a sample run:
See also: "perlipc -- Perl interprocess communication".
Update: s/last unless eof/last if eof/