Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: comparing ranges of numbers between 2 files

by LanX (Saint)
on Oct 15, 2017 at 11:15 UTC ( [id://1201399]=note: print w/replies, xml ) Need Help??


in reply to comparing ranges of numbers between 2 files

Since you only need to see if it's contained it's simply checking $a1 < $b1 and $a2 > $b2 for each combination of lines from file A and B.

you can use my ($a1, $a2) = split '-', $line to split the ranges.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-19 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found