home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


o

o 

type

 [

option

] [

value

]

Sets and queries options. Takes the following arguments:

type

Type of options to set or query. The possible values are:

debug

Debugging options. Prints CPAN module options for debugging the package.

conf

Configuration options. Lists or sets values for CPAN module configuration variables kept in the hash %CPAN::Config . Here are the configuration variables from %CPAN::Config :

Variable Content
build_cache

Size of cache for directories to build modules

build_dir

Locally accessible directory to build modules

index_expire

Number of days before refetching index files

cpan_home

Local directory reserved for this package

gzip

Location of external program gzip

inactivity_timeout

Breaks an interactive Makefile.PL after inactivity_timeout seconds of inactivity (set to 0 to never break)

inhibit_startup_message

If true, does not print startup message

keep_source

If set, keeps source in local directory

keep_source_where

Where to keep source

make

Location of external make program

make_arg

Arguments to always pass to make

make_install_arg

Same as make_arg for make install

makepl_arg

Arguments to always pass to perl Makefile.PL

pager

Location of external more program (or other pager)

tar

Location of external tar program

unzip

Location of external unzip program

urllist

Arrayref to nearby CPAN sites (or equivalent locations such as CD-ROM)

option

The CPAN module configuration option or options; used with conf . Can be one or more scalar or list options from the table above.

value

Value to be set for a configuration option.

The possibilities for o conf are:

o conf scalaropt

Prints current value of scalar option

o conf scalaropt value

Sets scalar option to value

o conf listopt

Prints current value of list option in MakeMaker format

o conf listopt [shift|pop]

Shifts or pops the array in listopt variable

o conf listopt [unshift|push|splice] list

Works like the corresponding Perl functions to modify the array in listopt based on list


Previous: Reference: make Perl in a Nutshell Next: Reference: q
Reference: make Book Index Reference: q

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.