Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Regex Array matching

by mr_ron (Chaplain)
on Feb 15, 2016 at 21:59 UTC ( #1155302=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1155302]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2022-12-07 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?