in reply to Looking for a faster method
will stop at the first $pFuncsA[$i] that doesn't have a 'command' entry in its hash. If there are entries with commands at higher indexes of '$i', then they will be skipped. I can't tell if this will be a problem in this case, since it's the only place $pFuncsA shows up in this code fragment.for (my $i=0; $pFuncsA[$i]->{command}; $i++) { ...
Also, to add to the bug alpha identified, you pobably meant to type
It's easier to forget the "keys" built-in function when you type 'foreach' as a synonym for 'for'; that's probably one reason that foreach is less favored these days. (It's going away in Perl6.)for (keys %channels) {
|
|---|