No such thing as a small change | |
PerlMonks |
Re^2: Find range in coordinates arrayby Fletch (Bishop) |
on Sep 30, 2019 at 18:44 UTC ( [id://11106885]=note: print w/replies, xml ) | Need Help?? |
I'm not sure I'm reading the OP right but I think that their list of numbers is really [start,end] pairs encoded as decimals. "7.23" means the range from character 7 to character 23, which is contained in the range [7,133]. Probably needs to split the string representation into pairs (maybe in an array ref) and then use an in_range( $range, $start, $end ) sub to check. Or something . . . </handwave>
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|