Perl Development

Top  Previous  Next

For developers using Perl, the DTWAIN32.PL and DTWAIN32U.PL files contains constants and functional definitions for the DTWAIN library.  The following small example demonstrates acquiring an image from a TWAIN device and saving to a BMP file:

 

Example

 

Since there are multiple ways that Perl allows constants to be defined, it is recommended that the Perl programmer copies the definitions from the DTWAIN32*.PL file and use them within the their program.  In addition, the DTWAIN32*.PL files assumes that the Win32::API Perl package is available.