use strict; use warnings; while (1) { print "Customer abbreviation: "; my $cust = ; print "\n"; chomp ($cust); last if $cust =~ /\w{3,4}/; print <