in reply to Re: Re: Loop Control : REDO
in thread Loop Control : REDO

redo if $digit[$i] !~ /^\d$/;
Or the much simpler:
redo if $digit[$i] =~ /\D/

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Re: Re: Loop Control : REDO
by suaveant (Parson) on May 02, 2001 at 18:31 UTC
    Ahh, actually no... his checks for a 0-9, your version just gets rid of non-digits... so you'd need the extra check, and no longer be simpler...
                    - Ant