To me, it's easier to see it that way... I'm still rather "young" on Perl :-)my @elements = ( keys %hash ); foreach (@elements){ if ( $_ eq $elements[-1] ){ #Do something to last element }else{ #Do something to an item in element } }
In reply to Re: Last Element of Hash
by LazerRed
in thread Last Element of Hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |