X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLexical%2FTypes.pm;h=026596f7ca9c59dcbf27a158e68f8d70d5424f48;hb=0a0dd81f4af6ef04e4d11604bda2458a06a8577b;hp=a8be1c4bb72b1582ce61f005879896803a5493fb;hpb=2217d97ba313979a7103df908a936b36a8c3f457;p=perl%2Fmodules%2FLexical-Types.git diff --git a/lib/Lexical/Types.pm b/lib/Lexical/Types.pm index a8be1c4..026596f 100644 --- a/lib/Lexical/Types.pm +++ b/lib/Lexical/Types.pm @@ -5,8 +5,6 @@ use 5.008001; use strict; use warnings; -use Carp qw/croak/; - =head1 NAME Lexical::Types - Extend the semantics of typed lexicals. @@ -152,7 +150,8 @@ sub import { $as .= '::' if $as !~ /::$/; $hint = _tag(sub { $as . $_[0] }); } else { - croak "Invalid $r reference for 'as'"; + require Carp; + Carp::croak("Invalid $r reference for 'as'"); } } else { $hint = _tag(sub { @_ });