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


in reply to while(<>) { ... } considered harmful

'scuse my ignorance of nether regions below Perl's skirts, but would it impose a huge performance penalty for map and grep to localise $_ on entry?

I visualise them as subs with their own local scope. Would a local $_; at the top cost so very much?


Well It's better than the Abottoire, but Yorkshire!