in reply to Re^2: Substring problem
in thread Substring problem

No need to. The <> operator knows to stop on EOF. You had the problem before because each iteration of the loop had two read ops, so you needed an even number of lines in the file to get it to terminate.

$,=' ';$\=',';$_=[qw,Just another Perl hacker,];print@$_;