Since your object is still mostly just a hash, you can iterate over its keys:
sub event { my $c = shift; foreach my $key (keys %$c) { print $key . "\n"; } }
In reply to Re: Loop though class attributes
by Corion
in thread Loop though class attributes
by ZX81Meister
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |