http://www.perlmonks.org?node_id=807329


in reply to does split(".") work?

split does not split on a string but on a regular expression. Dot "." is the "match-all" character in a regex so your split won't return anything.

You want my @values = split /\./, $ip instead.