in reply to Foreach Loops
Well, if you really need just the previous element you can go with
holli, /regexed monk/
my $lline; foreach my $line (@arr) { ## stuff goes here; $lline = $line; }
holli, /regexed monk/
In Section
Seekers of Perl Wisdom