- tyemy $left= keys %$hash; foreach my $element ( keys %$hash ) { if( 0 < --$left ) { # not last } else { # last } }
In reply to Re: Last Element of Hash (no magic)
by tye
in thread Last Element of Hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |