in reply to String Splitting
If there are only two lines, there is no need to split.
my ($one, $two) = <$input>; [download]
Update: I completely misunderstood the question.