in reply to How to read from a .txt

If it's directly from a txt file, you might have better luck with the $_ variable