You are viewing Revision 2 of APIs_RegCommand
RegCommand
This will register a command, which will be called via the 'do' parameter (do=action).
RegCommand(Name, Subroutine)
Name - This is the name to associate with the action.
Subroutine - This should be the subroutine that is called when the action you specify is called via the 'do' parameter. Must be entered in this format: \&SubroutineName
These are actual examples from the Aneuch source code:
RegCommand('admin', \&DoAdmin);
This will register the command 'admin', and specify that the subroutine DoAdmin should be called. This would take place by the user calling "?do=admin".