If there are only two lines, there is no need to split.
In list context, the <> operator returns a list.my ($one, $two) = <$input>;
Update: I completely misunderstood the question.
In reply to Re: String Splitting
by pbeckingham
in thread String Splitting
by Bugorr
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |