http://www.perlmonks.org?node_id=484932


in reply to String Splitting

If there are only two lines, there is no need to split.

my ($one, $two) = <$input>;
In list context, the <> operator returns a list.

Update: I completely misunderstood the question.



pbeckingham - typist, perishable vertebrate.