Documentation Center

Sample Perl scripts

These topics describe sample Perl scripts delivered with Contenta. You can test these scripts using the sample apiguide Oracle database delivered on the API installation media.

The following sample scripts are delivered:
  • List Hierarchy; listhier.pl
  • List Writer; listwriter.pl
  • Export Data; exportdata.pl

Import apiguide.dmp (the database dmp file) using the SDL Contenta dbimport.pl command. Refer to the SDL Contenta System Administration User section of the Contenta documentation for detailed information about the dbimport.pl command.

After importing the database, copy the files under the Perl > encaps directory on the API media into the encaps directory on your system.

These sample Perl script/tools are on the Tools menu (for the appropriate objects as listed for each tool) in the apiguide database.

Refer to the comments in the script files for detailed information about the script.