in reply to Re^2: Regular expression assistance
in thread Regular expression assistance
If this is not your intent and the way forward is unclear, post explicit desired output so the goal is clear.my @switch; while ($cdp =~ m/(.*0x01.*)/g) { push @switch, (split /\s+/, $1)[7]; }
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Regular expression assistance
by agentorange (Sexton) on Dec 07, 2012 at 17:01 UTC |