in reply to reg exp

Your specification seems not to be clear ... however you should try to replace

next if ($username =~ /ipw\.a^a-ma-z*/);
by
next if ($username =~ /ipw\.a[a-m][a-z]*/);
That way names like "ipw.ammmmawert" would be skipped, but "ipw.anawert" wouldn't.

HTH, Rata

PS.: PLEASE work on your formatting!

update: removed one small ^ (with a big effect)

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.