Util-Any
view release on metacpan or search on metacpan
lib/Util/Any.pm view on Meta::CPAN
return 0;
}
sub _uniq (@) {
my %h;
map { $h{$_}++ == 0 ? $_ : () } @_;
}
# /end
sub import {
my ($pkg, $caller) = (shift, (caller)[0]);
return $pkg->_base_import($caller, @_) if @_ and $_[0] =~/^-[A-Z]\w+$/o;
my %opt;
if (@_ > 1 and ref $_[-1] eq 'HASH') {
@opt{qw/prefix module_prefix debug smart_rename plugin/}
= (delete @{$_[-1]}{qw/prefix module_prefix debug smart_rename plugin/});
pop @_ unless %{$_[-1]};
}
$opt{$_} ||= 0 foreach qw/prefix module_prefix debug smart_rename/;
if (not defined $opt{plugin}) {
( run in 0.295 second using v1.01-cache-2.11-cpan-a3c8064c92c )