in reply to Re: Re: More Flat-File Database Questions
in thread More Flat-File Database Questions

So what does $scottnum actually look like? Can you give some example of the mixing of letters and numbers? If the letters in $scottnum are irrelevant to the selection process, you can quash them out with

$scottnum =~ tr/0-9//cd;

or, if the irrelevant bit is at the end of the number, just do the comparisons on the int( $scottnum ).

It doesn't matter that there are multiple entries for each scott number, since each line is treated independently in the selection process. If you have "100a" and "100b", they'll both be in the range [0, 200].