in reply to Regex host portion of IPv6 address
The function split might be all you need: my @parts = split(/\:/, $address); or somesuch.
But the recommendation to “use CPAN” is the best one overall. You see, right now you are struggling to solve a problem that has already been solved. Perhaps without thinking too much about it at the time, you dropped straight to “how” you could solve the problem... when it is very often better to first consider “what” the essential problem is. At the end of the day, what you want to walk-away with is simply the result, and if you can completely-avoid dealing with an algorithm, so much the better.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex host portion of IPv6 address
by ewhitt (Scribe) on Mar 28, 2008 at 21:10 UTC | |
by Anonymous Monk on Mar 29, 2008 at 08:30 UTC |