#!/usr/bin/perl -w #package MyConf; use strict; use warnings; use vars '%template'; #use base 'Exporter'; #@EXPORT_OK = qw(%template); require "rootssubs.sub"; my %template = ("site" => "home"); my $template_ref = \%template; print "Content-type: text/html\n\n"; &test($template_ref); print "in main: ".$template{'site'}."
\n"; exit(0);