small formatting updates to RADIUS report
[freeside.git] / htetc / global.asa
index 4358e87..782e062 100644 (file)
@@ -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) ) {