I have a really long string that looks like
'toDNExtension:1111, toDNFailure:1111, '

and I want to parse it into key/value pairs...

I tried:

foreach ( $string =~ /([\w\s]+):([\w\s]+)/g ) {
...
}

But I always get only the last pair...  I thought the /g would stop that
behaviour..

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to