What you want instead is to split with /\./. The backslash 'escapes' the period so that the regex doesn't interprete it as "match any character" but instead as "match the period". This will give you the split you are looking for.
In reply to Re: using split on a string
by Masem
in thread using split on a string
by newatperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |