|AHELP for CIAO 4.2||
Restore the system defaults for a parameter file from S-Lang.
punlearn( paramfilespec )
This function is essentially the same as the command-line version (see "ahelp tools punlearn").
The paramio module is not available by default; to use it in a S-Lang program, it must be loaded using the S-Lang require() function:
The input value can be one of:
- a string containing a single name
- a string containing multiple names, each separated by a space or a comma
- an array of strings, each string being the name of a single parameter file
Note that punlearn() does not accept a Param_File_Type variable - i.e. the output of paramopen().
As with all the paramio routines, the PF_Errno variable is set to 0 on success, or on error it is set to one of the error codes listed in the paramio documentation.
slsh> require("paramio"); slsh> punlearn("dmextract"); slsh> punlearn("dmextract dmlist"); slsh> punlearn("dmextract dmlist, dmcopy"); slsh> punlearn(["dmextract","dmlist","dmcopy"]);
This example shows the different ways that punlearn() can be used.
See the bugs page for the paramio module on the CIAO website for an up-to-date listing of known bugs.