If you also add use warnings, you will notice that the print statement is accessing an undefined value, $digit[0] I suspect that the original author meant to say the equivalent of
or if not the print should be:foreach my $i ( 0..3){
print "Your choices : @digit[1..4] \n";
iakobski
In reply to Re: (boo)Re: Loop Control : REDO
by iakobski
in thread Loop Control : REDO
by skullbowl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |