in reply to (boo)Re: Loop Control : REDO
in thread Loop Control : REDO
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
|
|---|