in reply to A simple foreach question

use warnings; would have told you what the problem was. use strict; also for good measure.