NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Re: create_table (Score:1)
BTW, in production code I add this to my base class:
*create_table = sub() {0};It makes the call a no-op, and that's nice for performance (at least on startup). And it's very very simple.
Re: create_table (Score:2)
Does that have any different an effect from:
sub create_table() {0}?Re: create_table (Score:1)
I now have this:I'm still a little puzzled by the prototype, though. I seem to remember that this way would get optimized away, so that not even the arguments to the sub would be evaluated. But I'm wrong about that, apparently.
Re: create_table (Score:2)
Reply to This
Parent