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.

Ron

Replies are listed 'Best First'.
Re^2: Regex Array matching
by Monkless (Acolyte) on Feb 15, 2016 at 23:28 UTC

    Thanks Ron! This indeed was what I was looking for initially.. good looking out, I can see this being useful as well