http://qs321.pair.com?node_id=774091


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'; }

                - Ant
                - Some of my best work - (1 2 3)