Trying to split class C IPs into network and host parts.
this works but I expected the host part in $2: print "<$bu>\n" if $debug; if( $bu =~ /^((\d+\.){3})(\d+)$/ ) { print "$1 $2 $3\n" if $debug; } output: <172.19.252.130> 172.19.252. 252. 130 where did my thinking jump the tract? I do see three sets of () but the inner () was simply to group for the {3} count where did the 252. come from? The last of 3 matches??? $1 is as I expected. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>