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';
}
- Ant
- Some of my
best work - (1 2 3)