http://qs1969.pair.com?node_id=1006872


in reply to Split function

If you can't have it die, you can make it do that if split splits into only one part.
(my ($s, $a, $c, $r) = split /[,\t]/) == 1 and die;
or, alternatively, you can do
die if not defined $a;
edit code fixed, thanks ColonelPanic