- or download this
sub verify_args {
my $defaults = shift; # leave the rest of @_ intact.
...
unless exists $defaults->{$var};
}
}
- or download this
my %convert_defaults = (
from => 'here'
...
my %args = (%convert_defaults, @_);
...
}
- or download this
package KinoSearch::Util::Class;
use KinoSearch::Util::ToolSet; # strict, warnings, Carp, etc.
...
. "abstract method and must be defined in a subclass.";
}
- or download this
package KinoSearch::Analysis::Analyzer;
use KinoSearch::Util::ToolSet;
...
sub analyze { shift->abstract_death }
1;
- or download this
package KinoSearch::Analysis::PolyAnalyzer;
use KinoSearch::Util::ToolSet;
...
}
1;