P is for Practical | |
PerlMonks |
Re: does split(".") work?by Joost (Canon) |
on Nov 15, 2009 at 23:23 UTC ( [id://807329]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|