Environment variables are used to set user preferences. Individual Perl modules or programs are always free to define their own environment variables, and there is also a set of special environment variables used in the CGI environment (see Chapter 9, "CGI Overview").
Perl uses the following environment variables:
C:\> set PATHEXT=%PATHEXT%;.PLX
This setting lets you type:
C:\> myscript
without including the file extension. Be careful when setting PATHEXT permanently—it also includes executable file types such as .com, .exe, .bat, and .cmd. If you inadvertently lose those extensions, you'll have difficulty invoking applications and script files.
use lib "/my/directory";
BEGIN { require 'perl5db.pl' }
Perl also has environment variables that control how Perl handles data specific to particular natural languages. See the perllocale manpage.
Copyright © 2002 O'Reilly & Associates. All rights reserved.