Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Restrict the import

The user (the script writer) can restrict the list of imported functions but the unsuspecting script write will still get all the functions.

#!/usr/bin/perl
use strict;
use warnings;

use lib 'examples/modules';

use A::Calc qw(add);

print add(2, 3), "\n";