FILE ... TOC

Define package specific macro

This function can be called from the Perl macro extension packages. Calling this function helps to define package specific user defined macros. The caller should call this function, like

           &jamal::DefineMacro( 'macroName' , ',argument,list','macro body');

This function in fact calls the DefineMacro of the package main, however prepends the package name before the name of the macro. Therefore the above function call made from package e.g.: macpac is equivalent to:

           &main::DefineMacro( 'macpac::macroName' , ',argument,list','macro body');

Note that the argument list is a string and should start with the separator character, even if there is only one argument.

Example:

           &jamal::DefineMacro('cap',',X','<FONT SIZE=+1>X</FONT>');
Note that there is a comma preceeding the parameter X

FILE ... TOC