> [- Execute ({inputfile => 'subs.html#NEW', param => \@p}) -]
Oops, sorry my fault, must be:
[- Execute ({inputfile => 'subs.html', sub => 'NEW', param => \@p}) -]
the 'subs.html#NEW' works only in the short syntax, i.e.
[- Execute ('subs.html#NEW') -]
the other solution would be to change it to
[- Execute ('subs.html#NEW', \$object) -]
this passes in a reference ro $object and then
[$ sub NEW $]
[-
my $object = {};
bless $object, __PACKAGE__;
${$param[0]} = $object;
-]
[$ endsub $]
[! sub xxx { print OUT "xxx"; } !]
This is a little shorter and saves the extra @p array
Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]