develooper Front page | | Postings from October 2005

Re: PHP Template Global Variables

Thread Previous | Thread Next
David Wheeler
October 26, 2005 20:43
Re: PHP Template Global Variables
Message ID:
On Oct 26, 2005, at 8:37 PM, George Schlossnagle wrote:

> Not so bad, really.  A more elegant solution might be more  
> aesthetic, but I don't think there'll be a noticeable performance  
> impact either way.

Just the overhead of the eval every time I instantiate a new burner,  
then, which means for every publish. But that was true before, too.

This reminds me: George, a while ago you and I discussed on IM the  
idea of adding a method to the $perl object to make it easier to call  
Perl class methods. Currently, we have to do this:

   $perl = Perl::getInstance();
        # args to list()

This is annoying, of course, especially since it's wrong. The list()  
method is defined in Asset, and Story inherits it. So I'd actually  
have to do this:

   $perl = Perl::getInstance();
        # args to list()

I have to know too much about the internals. Any chance you could add  
the methods we'd discussed before to make this more idiomatic?



Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About