in reply to problem with regex to extract netstat info
Whenever I see a regex like this I start thinking about split or unpack (if it's more fixed length).
An example with split:@foo = split /\s+/; ($laddr,$lport) = (split(/:/,$foo[1]),split(/:/,$foo[2]));
| Just me, the boy and these two monks, no questions asked. |
|
|---|