in reply to Re^2: Code clarification - use of map and $$_
in thread Code clarification - use of map and $$_
... I still only see the FIRST instance of the END block doing anything ...
From this I think you've already gotten the point, but anyway... There is only one instance of any given END block in a program:
c:\@Work\Perl\monks>perl -wMstrict -le "for my $str (qw(one two three)) { print qq{in for loop: '$str'}; END { print 'END block ONE'; } END { print 'END block TWO'; } END { print 'END block THREE'; } } " in for loop: 'one' in for loop: 'two' in for loop: 'three' END block THREE END block TWO END block ONE
Give a man a fish: <%-{-{-{-<
|
|---|