in reply to
split giving me a splitting headache
/.*/
is greedy. So all you have to do is
($x, $y) = /(.*)\.(.*)/;
[download]
and Bob's your uncle. Unless there is no period. You'll have to handle that case separately.
Comment on
Re: split giving me a splitting headache
Select
or
Download
Code
In Section
Seekers of Perl Wisdom