From 099e33f9b1f9440b7febb592c42b230793a2c0e0 Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Mon, 13 May 2013 09:31:45 -0400 Subject: [PATCH] do IO on init not handle --- lib/DDG/Goodie/PrivateNetwork.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/DDG/Goodie/PrivateNetwork.pm b/lib/DDG/Goodie/PrivateNetwork.pm index d75ead383..6fcff0914 100644 --- a/lib/DDG/Goodie/PrivateNetwork.pm +++ b/lib/DDG/Goodie/PrivateNetwork.pm @@ -17,9 +17,11 @@ topics 'sysadmin'; attribution twitter => 'crazedpsyc', cpan => 'CRZEDPSYC' ; +my $text = scalar share('private_network.txt')->slurp, +my $html = scalar share('private_network.html')->slurp; + handle sub { - scalar share('private_network.txt')->slurp, - html => scalar share('private_network.html')->slurp; + $text, html => $html; }; 1;