That's a little more efficient than the solution I came up with, give thx!
foreach my $o (%{$c}) { if(ref(\$o) eq 'REF' && exists($o->{Device}) && $o->{Device} eq $dev +ice) { $o->motion; last; } }
In reply to Re^2: Loop though class attributes
by ZX81Meister
in thread Loop though class attributes
by ZX81Meister
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |