Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Test:: to match multiple lines against corresponding regular expressions

by choroba (Cardinal)
on Jun 24, 2018 at 17:13 UTC ( [id://1217327]=note: print w/replies, xml ) Need Help??


in reply to Test:: to match multiple lines against corresponding regular expressions

> And I can do it with one go with Test::Deep

Do you mean

use Test::Deep; cmp_deeply \@lines, bag(map re($_), @regexen);
?
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Test:: to match multiple lines against corresponding regular expressions
by Dallaylaen (Chaplain) on Jun 26, 2018 at 15:28 UTC
    Yes, and even without bag because I need to preserve order. Still I'd like to have a message about all mismatches, not just the first one.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found