Running Sample Script for Perl

Run the sample script for the SAP Adaptive Server Enterprise database driver for Perl.

  1. Locate Perl samples in $SYBASE/$SYBASE_OCS/samples/perl.
  2. Verify that SAP Adaptive Server is up and running.
  3. Ensure that the PERL5LIB environment variable is set.
    • On Linux x86-64 64-bit drivers, specify the

      $SYBASE/$SYBASE_OCS/perl/sybaseperl_64r/lib/lib: \ $SYBASE/$SYBASE_OCS/perl/sybaseperl_64r/lib/arch directory.

    • On Solaris x86 32-bit and Solaris SPARC 32-bit drivers, specify the $SYBASE/$SYBASE_OCS/perl/sybaseperl_32/lib/lib: \ $SYBASE/$SYBASE_OCS/perl/sybaseperl_32/lib/arch directory.

    • On IBM AIX 32-bit, HP-UX Itanium 32-bit, and Linux on POWER 32-bit drivers specify the $SYBASE/$SYBASE_OCS/perl/sybaseperl_32r/lib/lib: \ $SYBASE/$SYBASE_OCS/perl/sybaseperl_32r/lib/arch directory.

  4. Run the sample:
    perl firstapp.pl

See the Adaptive Server Enterprise Database Driver for PERL Programmers Guide for more details.