On Wed, Apr 04, 2007 at 09:20:30AM -0700, Randal L. Schwartz wrote: > > Here's what I did for my readonly class, based on discussions with jcs > six months ago: > > sub insert { > die "cannot insert" unless our $READWRITE; > goto &{$_[0]->can("SUPER::insert")}; > }
Hi Randal. Idle curiosity... Why the goto+can incantation instead of the more natural: shift->SUPER::insert(@_); If it's to hide the sub from caller(), why bother? If it's performance, did you measure a difference? Tim. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object