Why doesn't this work to check the <STDIN> until it is one of the numbers
"1 2 3 4 5" ?? I have tried multiple variations of this with different
brackets ie. [ ] , and ( ) .

 

until($type_number == 1 .. 5 ){ 

print "Enter the number that corresponds to the type of offense you would
like a report for\n";

print "1. Virus\n2.Spam\n3.Hacking\n4.Copyright\n5.Child Pornography\n";

chomp($type_number = <STDIN>);

}

 

 

Chris Hood 

 

Reply via email to