1. Toby Inkster
  2. p5-scalar-does

Commits

Toby Inkster  committed 175b0db

IO::Detect can now rely on Scalar::Does's deps :-)

  • Participants
  • Parent commits c597822
  • Branches default

Comments (0)

Files changed (1)

File lib/IO/Detect.pm

View file
 use strict;
 use warnings;
 use utf8;
+use if $] < 5.010, 'UNIVERSAL::DOES';
 
 BEGIN {
 	$IO::Detect::AUTHORITY = 'cpan:TOBYINK';
 	$IO::Detect::VERSION   = '0.100';
-	
-	*UNIVERSAL::DOES = sub { shift->isa(@_) }
-		unless UNIVERSAL->can('DOES');
 }
 
 # This is kinda dumb, but Perl 5.8 doesn't grok the _ prototype.