in reply to
A simple foreach question
use warnings;
would have told you what the problem was.
use strict;
also for good measure.
Comment on
Re: A simple foreach question
Select
or
Download
Code
In Section
Seekers of Perl Wisdom