in reply to Re: scoping problem?
in thread scoping problem?
And are you sure you're getting the contents of the text file to <>?
Bad path to text file? Wrong name of text file? Failure to test open ($FH, "< $text_file") or die "Can't open $text_file, $! ? or something similar?