I agree with the CPAN recommendation. The reason I was taking my approach was to extract the IPv6 address from strings of text, then break it down. Net::IPv6Addr::ipv6_parse works great for the latter, but I am still trying to figure out the first part.