And of course the first test will never end unless a stray gamma ray hits your CPU and changes the constant 4 to some other number. :-)my $pin; 1 while ( $pin = pin() ) =~ /\A\d{4}\z/; my $digits = "\0" x 10; do { substr $digits, $_, 1, $_ for pin() =~ /\d/g; } until $digits =~ /\A\d{10}\z/;
In reply to Re: Testing Random Code
by jwkrahn
in thread Testing Random Code
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |