in reply to Regex Array matching
The code:
print "Found: $_\n" foreach map { $devicesData =~ $_ } @matches;
would seem to print what you "said" you wanted. The solution from poj may be more broadly useful.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex Array matching
by Monkless (Acolyte) on Feb 15, 2016 at 23:28 UTC |