- or download this
#!/usr/bin/perl
use strict;
- or download this
Print “enter a 4 digit number:\n”;
- or download this
print "enter a 4 digit number:\n";
- or download this
Test: {
my $number = <STDIN>;
chomp $number;
- or download this
If $number !=~ /[0-9][0-9][0-9][0-9]/{
- or download this
if $number !~ /^[0-9][0-9][0-9][0-9]$/ {
- or download this
Print “try again – 4 digits\n”;
- or download this
print "try again – 4 digits\n";
- or download this
Redo TEST;
- or download this
redo Test;
- or download this
}
}
- or download this
#!/usr/bin/perl
use strict;
...
redo Test;
}
}