start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.22 Benchmark Chapter 8
Standard Modules
Next: 8.24 Carp
 

8.23 blib

Pragma for testing programs against a package before the package has been installed. Given a directory path, blib starts in that directory to look for a blib directory structure; if it doesn't find one there, it works its way back up five levels. If no path is specified, it starts looking in the current directory.

blib is meant to be used from the command line:

perl -Mblib script [args...] perl -Mblib=dir script [args...]
However, you can also call it from a Perl program:
use blib; use blib 'dir';


Previous: 8.22 Benchmark Perl in a Nutshell Next: 8.24 Carp
8.22 Benchmark Book Index 8.24 Carp

Library Navigation Links

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