X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=htetc%2Fglobal.asa;h=782e06223321565d05fba4591a82df57e7b7c651;hp=4358e87b11b9dff9a465dc9cd2dd7b473619306f;hb=eb4cf5563939a08eba1a10d8c2a8f52205f6535b;hpb=686e4d8cf9a69012cbf92983a787644d583bdcd8 diff --git a/htetc/global.asa b/htetc/global.asa index 4358e87b1..782e06223 100644 --- a/htetc/global.asa +++ b/htetc/global.asa @@ -15,6 +15,10 @@ use HTML::Entities; use IO::Handle; use IO::File; use Net::Whois::Raw qw(whois); +if ( $] < 5.006 ) { + eval "use Net::Whois::Raw 0.32 qw(whois)"; + die $@ if $@; +} use Business::CreditCard; use String::Approx qw(amatch); use Chart::LinesPoints; @@ -198,7 +202,9 @@ sub sprintAutoProfile { sub include { ( my $file = shift ) =~ s(^/)(%%%FREESIDE_DOCUMENT_ROOT%%%/); - ${$Response->TrapInclude($file, @_)}; + #broken in 5.005# ${$Response->TrapInclude($file, @_)}; + my $ref = $Response->TrapInclude($file, @_); + $$ref; } if ( defined(@DBIx::Profile::ISA) ) {