in reply to Re^6: I want you to convince me to learn Perl
in thread I want you to convince me to learn Perl
Don't good friends deserve a name?
Sorry. I see your smiley face, but I'm going to answer the question seriously: Absolutely frikkin' not :)
Why contrive a name for something that will never be called anywhere else?
Why contrive a name for a block of code that only makes sense in one place in the source?
That will often will only work in one place in the source because it needs access to lexical variables in scope at that position (closures). If you make the blocks named subroutines, then they have to be declared out-of-line of where they are used, which means you now need to pass (what would be) closures via arguments; and that means making up more names for the formals.
Take a look at this, and tell me, what would you name the two map blocks?
And if you're going to go that route, how about naming the blocks for your while loops; and for loops; and if & elsif & else bodies; and ...