in reply to Re: Foreach loopin thread Foreach loop
I think you meant to say grep /^1$/, @array
Oops! Yes Bloodnok, I have not tested it. Thanks.