in reply to split split
Split is usually used for breaking up a string, for pulling a specific piece of a string out usually a regexp is a better bet
if($string = /^client\s+(\d+\.\d+\.\d+\.\d+)/) { $ipaddr = $1; } else { die 'horribly'; }
In Section
Seekers of Perl Wisdom