in reply to Please fix my writing style
That's probably one of the more "Perlish" ways of writing that. Your datafile's format sucks, which is your problem. Pretty code and sucky input generally don't mix. "A" input gets to play with "A" code. "C" input plays with "C" code. All the special cases.my %teams = map { lc } map { split /:\s+/ } map { chomp; $_ } <DATA>;
|
---|