<>; while(<>){ # read next line to variable $_ $hash{ lc ( /\@bmail\.com$/i ? : $_ ) } }, $_ }
6 ICPC.@bmail.com p+con+test@BMAIL.COM P@bmail.com a@bmail.com.ru I.cpc@Bmail.Com a+b@bmail.com.ru
4 2 p+con+test@BMAIL.COM P@bmail.com 2 ICPC.@bmail.com I.cpc@Bmail.Com 1 a+b@bmail.com.ru 1 a@bmail.com.ru