in reply to printing values within a given range

Thanks everyone for your advice! I do now have it working, but its only a very small section of the script I'm trying to write .. as I think I have already said I'm somewhat of a novice but would rather ask for help with snippets and see how I can progress from there, rather than the whole thing if you see what I mean.

The input file was just a text file like this for example

234 654 123 975
etc ...

Replies are listed 'Best First'.
Re^2: printing values within a given range
by polettix (Vicar) on May 04, 2005 at 10:33 UTC
    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.