in reply to Re: printing values within a given range
in thread printing values within a given range

If the input is that simple, why the substr then?
# Inside the loop... my $checkvalue = substr($_, 0, 6);
If your input is really that simple, don't calculate $checvalue and use $_ directly, possibly after chomping it.

Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

Don't fool yourself.