http://qs1969.pair.com?node_id=1210975


in reply to opening a file passed into sub as ref

You might have a newline character. Tip #3 from the Basic debugging checklist: chomp
chomp @lparstat;