in reply to Re: Shuffling cards
in thread Shuffling cards

Wow, thanks for the review - pointed out a lot of things I need to look over. Some of the bits I did because it's a timed exercise (working on global var + symrefs) but seems I made a lot of time-wasting mistakes as well (and just bad mistakes :D).

As to 1..$char? iterate $char times, what's wrong with that?

Anyway.. <runs off to improve code>

Replies are listed 'Best First'.
Re^3: Shuffling cards
by blazar (Canon) on Feb 22, 2005 at 15:38 UTC
    Wow, thanks for the review - pointed out a lot of things I need to look over. Some of the bits I did because it's a timed exercise (working on global var + symrefs) but seems I made a lot of time-wasting mistakes as well (and just bad mistakes :D).
    Incidentally using a hash, e.g. a dispatch table takes only a few more efforts than symrefs.
    As to 1..$char? iterate $char times, what's wrong with that?
    You're right, my mistake, I just corrected the original post.