Hi, it seems that SDM is able to execute perl functions from spel code. For example auto_assign routine calls cr::auto_assign_site_p method that is defined in auto_site.pm. I tried every method for calling spel methods that is known for me, but witthout success. Maybe someone is aware how to do this.
as I remembered I checked that function a year ago,
and there was regular exec function and pdm_perl app... nothing special...
Are you sure? cr::auto_assign_site_p Receives object, user and group arguments from spel and returns user and group to spel, this way you can define site modifications to auto assign functionality. Since exec is not able to get results i don't think that in this case it is used.
It seem even bop_cmd can execute perl scripts. If you will examine bop_cmd you will found the following:
The utility invokes the specified method with the specified arguments. and <filename> must end in '.pm'. where <filename> is the path to a file containing perl code -f <filename> "method( 'arg1', 'arg2',...)" Invoke it with a command of the form: a:d:f:g:hnrlu:v bop_cmd-%p This utility executes a perl script that can utilize BOP extensions.
ok actualy utility that executes perl methods is bop_pcmd
Ok it seems that there is no hope to discover how to execute perl subroutines from spel code.
Actualy they can be executed as normal spel scripts.