I'm going for the .pm approach now, getting my head around how this all fits together.
foo.pm
Code:
#!/usr/bin/perl
use strict;
use Carp;
use vars qw(@ISA @EXPORT $VERSION) ;
require Exporter;
require DynaLoader;
@ISA = qw(Exporter DynaLoader) ;
@EXPORT = qw(foo_init foo_test) ;
$VERSION = '1.0' ;
sub foo_init (
return 1;
)
sub foo_test {
print "HELLO WORLD";
}
foo_exec.html
Code:
<cpanel setvar="headerimg=../images/topsubdomains.gif">
<cpanel setvar="dprefix=../">
<cpanel Branding="include(stdheader.html)">
<div class="body-content">
<cpanel foo="test()">
<cpanel Branding="include(stdfooter.html)">
My current error
Code:
Undefined subroutine &Cpanel::emsdi::emsdi_create called at (eval 63) line 1.
eval 'Cpanel::emsdi::emsdi_create(@RARGS);' called at cpanel.pl line 1316
main::exectag('<cpanel emsdi="create()">') called at cpanel.pl line 4330
main::dotag(undef) called at cpanel.pl line 4219
main::cpanel_parseblock('SCALAR(0x8ed41a8)') called at cpanel.pl line 4173
main::cpanel_parse('GLOB(0x90dc210)') called at cpanel.pl line 990