* Johan Vromans <[EMAIL PROTECTED]> [2005-06-19 11:25]: > But deferring compilation of, say, 25% of the code?
I don’t know how much there is to be saved. The other option I can think of is kind of wild: do the option specification parsing/processing that has to be done on every invocation, regardless of the user input, just once, and then cache the results somewhere – possibly as Perl code in the __DATA__ of the caller or some such, much like SelfLoader works. > Besides, I try to avoid using "eval STRING" at almost any cost. > It introduces the risk of having code that suddenly starts > failing under specific circumstances. Well, I avoid “eval STRING” in regular code as well (motto: “it’s generally a red flag”), always preferring other means if they are available. But I’ve never had any problems with it when I used it with constant strings solely to defer compilation. Do you have any specific examples of what you are referring to? Regards, -- #Aristotle *AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1}; &Just->another->Perl->hacker;