http://www.perlmonks.org?node_id=443600


in reply to Stupid mistakes I repeatedly make

My most irritating mistake concerns the use of x, the repetition operator.

my $multiple_Zs = 7 x 'Z'; ##Wrong
instead of
my $multiple_Zs = 'Z' x 7; ##Correct

I'm not sure but I guess this has something to do with that English is not my first language. I think the natives read it as "Z times 7" and then is DWIMs. In Swedish it spoken the other way around. But all in all, this is one of only a few cases where Perl NDWIM.