in reply to Should we Localize $_ ?
You learn a natural language once and use it many times. The lesson for a language designer is that a language should be optimized for expressive power rather than for ease of learning. It's easy to learn to drive a golf cart, but it's hard to express yourself in one.
Like the previous poster I tend to use an explicit variable for complicated foreach loops because I don't like to use $_ explicitly in function calls or other places far from the source of implicit variable. However, I love it when I can say:
instead oflast if /somregexp/;
not to mention just plain oldlast if $somelongvarname =~ /somregexp/;
chop;
-I went outside... and then I came back in!!!!
|
|---|