X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FUtil.pm;h=dc8c27ab214093a8adeb12b40e1d0b61f2a92ec2;hp=7dc818707f7840de5deabc99b6e474c8ce8728af;hb=f671555230c6928a7834a9c6be047649cd0c4f5b;hpb=bcd39bf45ef69561e5ee81b50f4d5760cf19b554 diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index 7dc8187..dc8c27a 100644 --- a/lib/Mouse/Util.pm +++ b/lib/Mouse/Util.pm @@ -1,13 +1,10 @@ -#!/usr/bin/env perl package Mouse::Util; use strict; use warnings; use base qw/Exporter/; use Carp; -use Scalar::Util qw(blessed looks_like_number openhandle reftype weaken); our @EXPORT_OK = qw( - blessed looks_like_number openhandle reftype weaken get_linear_isa ); our %EXPORT_TAGS = ( @@ -58,6 +55,8 @@ sub apply_all_roles { my $meta = Mouse::Meta::Class->initialize(shift); my @roles; + + # Basis of Data::OptList my $max = scalar(@_); for (my $i = 0; $i < $max ; $i++) { if ($i + 1 < $max && ref($_[$i + 1])) { @@ -101,26 +100,5 @@ Mouse::Util - features, with or without their dependencies =head3 get_linear_isa -=head2 L - -=head3 blessed - -=head3 looks_like_number - -=head3 reftype - -=head3 openhandle - -=head3 weaken - -C I be implemented in XS. If the user tries to use C -without L, an error is thrown. - -=head2 Test::Exception - -=head3 throws_ok - -=head3 lives_ok - =cut