Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: limiting number of snmp requests

by RichardK (Parson)
on Nov 06, 2015 at 18:56 UTC ( [id://1147123]=note: print w/replies, xml ) Need Help??


in reply to limiting number of snmp requests

Sounds like a job for natatime from List::MoreUtils

the help says this :-

natatime EXPR, LIST Creates an array iterator, for looping over an array in chunks of +$n items at a time. (n at a time, get it?). An example is probably a better explanation than I could give in words. Example: my @x = ('a' .. 'g'); my $it = natatime 3, @x; while (my @vals = $it->()) { print "@vals\n"; } This prints a b c d e f g

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1147123]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-23 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found