in reply to Re: RE question...yup, another one ;)
in thread RE question...yup, another one ;)

For the solution above, btrott, I believe you have it wrong. What happens when you get to 300? It prints 3000. Not the desired result; but I think I see where you are going with this. . . so here goes a quick attempt.
print $_ . "-->" . $_ % 10 for 0..300

Replies are listed 'Best First'.
Re: Re: Re: RE question...yup, another one ;)
by btrott (Parson) on May 27, 2001 at 01:46 UTC
    It doesn't print 3000 when I run the program. Your solution that you posted looks exactly the same as mine, except you print out the $_ and the '-->'. What is the difference?

    What version of perl are you running where it prints 3000?

      My mistake. In the black box your % looked like *.
Re: Re: Re: RE question...yup, another one ;)
by larryk (Friar) on May 27, 2001 at 00:49 UTC
    3000? doh!

    "Argument is futile - you will be ignorralated!"