- or download this
package My::Module;
BEGIN {
...
return "module subroutine";
}
1;
- or download this
#!/usr/bin/perl
use My::Module;
...
sub testsub { # "local" definition of subroutine
return "local subroutine";
}
- or download this
<% $txt %>
<%INIT>
...
My::Module->import(qw(testsub));
my $txt = testsub();
</%INIT>
- or download this
PerlInitHandler Apache::Reload
PerlSetVar ReloadAll Off
- or download this
use Apache::Reload;