On Wed, Aug 01, 2001 at 09:18:30AM -0500, Chris Garringer wrote:
> I have a data structure $logs[]{}{}[] that has the data parsed from a
> foreach $day (@logs)
> {
> ....some code1.....
> foreach $username (%$day)
> {
> .....some code2.....
> foreach $authmethod (%$username)
> {
> .somecode .... the program never got here
> }
> }
> }
for my $day (@logs)
{
for my $username (keys %$day)
{
for my $authmethod (keys %{$day->{$username}})
{
for my $whatever (@{$day->{$username}{$authmethod}})
{
}
}
}
}
But you'll probably want to abstract away a bit of that to make it a
little easier to understand. You might also want to consider "each" for
iterating over hashes which will probably have the same effect.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]