I guess I'm wondering if Perl sets some global variable to true once it hits the last element... thanks, Michaelforeach my $element (keys %$hash) { if (lastElement) { #do this } else { #do that } }
In reply to Last Element of Hash by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |