O'Reilly logo

Apache Derby—Off to the Races: Includes Details of IBM® Cloudscape™ by Dan Scott, George Baklarz, Paul C. Zikopoulos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Apache Derby Applications with Perl

Using Perl Modules

To use a Perl module in a Perl script, you must tell the Perl interpreter to load the module through the use statement. Most Perl scripts collect their use statements at the top of the script to ensure that all of the dependencies are met before the rest of the script is run. It is also an easy way to inform other users of your script about the required modules.

All of the Perl scripts that are developed in this chapter start with the following lines:

#!/usr/bin/perl -w
use strict;
use DBI qw{:sql_types };

When you invoke a script on Windows operating systems, the first line is ignored. However, on UNIX-based operating systems, the special #! (or “hash-bang”) line tells the operating ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required