I have a puzzle ... I see from the documentation that you can use this syntax in the CSS:
-xpp-perl(myfunc);
or
-xpp-perl-mfrag(myfunc);
However I wanted to call a function (myfunc2) that is in a module file in my JOB folder (say, mymodule.pm)
and I have tried this in the CSS file:
-xpp-perl-mfrag(mymodule::myfunc2);
Now that seems to start off OK as without the "mymodule::" part I do get an error message on compose saying that myfunc2 subroutine cannot be found.
But the mymodule::myfunc2 subroutine does not seem to be actually actioned when I run compose.
So, I'm wondering if the -xpp-perl and -xpp-perl-mfrag fully allow a first argument that includes a module name?
As a test of the myfunc2 subroutine I
- set up the CSS to call a simple subroutine in my main .pl program
- that simple subroutine in the main .pl program just called the module-based function I was really trying to access
i.e.
mymodule::myfunc2();
and that did seem to work OK.
Paul