X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FHTML%2FString%2FTT.pm;h=360f05670a828ae10a6bd54b097d2171bb313f32;hb=586054e05c7ac2fcdb3b7a27442f8b1586c64105;hp=6e35360acb8196715e344da95bad7d76ca87768c;hpb=51eaef0b19f5ecdb237e313c327745e879f45d28;p=scpubgit%2FHTML-String.git diff --git a/lib/HTML/String/TT.pm b/lib/HTML/String/TT.pm index 6e35360..360f056 100644 --- a/lib/HTML/String/TT.pm +++ b/lib/HTML/String/TT.pm @@ -2,6 +2,15 @@ package HTML::String::TT; use strictures 1; +BEGIN { + if ($INC{"Template.pm"} and !$INC{"UNIVERSAL/ref.pm"}) { + warn "Template was loaded before we could load UNIVERSAL::ref" + ." - this means you're probably going to get weird errors." + ." To avoid this, use HTML::String::TT before loading Template." + } + require UNIVERSAL::ref; +} + use HTML::String; use HTML::String::TT::Directive; use Safe::Isa;