is there a way to iterate over the fields of a Class::Struct (in the order
they were declared)?
something like:
foreach my $i (@{my_struct->fields()}) {
print "$i = my_struct->value($i)\n";
}
yeah i know its a long shot, but perl sometimes does things for me that i
never would have believed...much less knew to expect...;)
also, i know you can do this with hashes (although in "random" order, unless
you sort the keys), but hashes are too error prone for my liking. i.e.
$my_hash{TYPO} = $blah; does not result in an error...=(
thanks.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>