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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: does split(".") work?
by jwkrahn (Abbot) on Nov 16, 2009 at 00:23 UTC | |
by ysth (Canon) on Nov 16, 2009 at 05:45 UTC |
In Section
Seekers of Perl Wisdom