1b39c5158Smillert# avoid cut-n-paste exhaustion with this mixin 2b39c5158Smillert 3b39c5158Smillertpackage MyCustom; 4b39c5158Smillertuse strict; 5*6fb12b70Safresh1use warnings; 6b39c5158Smillert 7b39c5158Smillertsub custom { 8b39c5158Smillert my $self = shift; 9898184e3Ssthen $main::CUSTOM{ ref($self) || $self }++; 10b39c5158Smillert return $self; 11b39c5158Smillert} 12b39c5158Smillert 13b39c5158Smillert1; 14