common: global Data() to parse perl code includes
[sheet.git] / codec.plp
index 1ce4611708149f5974fa005e9edcb4dd4121ded6..34246950dcc25c7e27d5c01064993d6ad15b6465 100644 (file)
--- a/codec.plp
+++ b/codec.plp
@@ -20,7 +20,7 @@ Html({
        raw => '<style>td,th {width:8%} tbody th {white-space:nowrap}</style>',
 });
 
-my $info = do "codec-$page.inc.pl";
+my $info = Data("codec-$page");
 $info and %{$info} > 1
        or Abort("Requested codec type <q>$page</q> not available", '404 request not found', $@ // $!);