Cool.
Though I'm not sure about the CODEREF part. bugreport is a just a function to run if 'make test' fails. Though you hardcoded it to be a function to print something. Since eval of that CODEREF happens during generate_script() you could just do it and pass that return value to bugreport. i.e. it provides no added value.
well, I was thinking that this might be useful and a bit more dwimmy.
generate_script(bugreport => \&My::Foo::bugreport);
of course you could, as you say, evaluate the sub then pass in the resulting string, but I kinda thought the delayed eval made it a bit neater - that's the added value :)
but whatever, it doesn't matter to me.
--Geoff
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
