hooked on markjugg

rhesa on 2005-08-04T22:15:40

So, first he gives us callbacks in CGI::Application. Soon we'll have them in HTML::Template too. And if that's not enough, he's enabling magic-dot notation as well!

Three cheers for Mark! Yay Mark, way to go :)))))

Ok, so I thought it would be cool to be able to pass arguments to method calls as well, so you can do, say,

  


And mix method calls and hash-key referencing:

  


That would help, for instance, when that method returns a hashref, or when a hash contains some objects.

I've got something thrown together at the moment, but it's still crude. These two samples work though :)


Thanks

markjugg on 2005-08-08T01:54:24

Thanks for the kind words. As I recall, the idea for callbacks in C::A came from Cees Hek, and Michael Graham later helped significantly to refine the code. It was a group effort.

I was hesitant about it at the time, but we only have to look at the growing number of plugins for C::A to see that the value of a functional plugin system for that user community.