Are you dealing with set of integers?
#!/usr/bin/perl -w use strict; use Set::IntSpan; my ($run_list, $set, $n); $run_list = '0-100'; $n = 13; eval { $set = new Set::IntSpan $run_list }; $@ and print "$@: bad run list\n"; member $set $n and print "$n is a member of my set\n";
hth,
PooLpi
In reply to Re: Matching string containing values between 0 and 100 inclusive
by poolpi
in thread Matching string containing values between 0 and 100 inclusive
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |