Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: export variable outside foreach

by philipbailey (Curate)
on Jun 19, 2014 at 15:36 UTC ( [id://1090481] : note . print w/replies, xml ) Need Help??


in reply to export variable outside foreach

Perhaps your input file has a final line consisting of a newline only, or line that has no fourth field? That would give the behaviour you describe.