more useful options | |
PerlMonks |
Re^9: A short whishlist of Perl5 improvements leaping to Perl7by eyepopslikeamosquito (Archbishop) |
on Nov 28, 2020 at 20:33 UTC ( [id://11124334]=note: print w/replies, xml ) | Need Help?? |
I don't understand why you didn't go the easy way of defining my %rtoa either on file or function scope.Though that was easier, I am pedantic and just couldn't bring myself to do it:
Update: Re the rationale for introducing state variables, found a quote from Larry himself in Re: About "state" variables in Perl 5.10: However, that difference is not why we introduced state variables. The big win is the psychological one of not having to look outside of the sub to find the definition of $x. (That, and we wanted it as a primitive in Perl 6 so that people could write stateful macro constructs without forcing the user to define the state variable externally; in fact, we also use it ourselves in order to implement the stateful flipflop operator without having to build the flipflop in as a primitive, as it is in Perl 5.)
In Section
Meditations
|
|