in reply to Getopt::Long good style?

You shouldn't be worried about the memory impact of a single sub. In this case the difference is completely meaningless.

Your code is fine. Anonymous subroutines might take more memory than named ones if they close on lexical variables, so if you create many (*many*) instances of them you might start feeling the difference, but in this case, you won't.