An import list describes which helpers a caller wants from a module.

Import Lists

import_lists.pl
use strict;
use warnings;

my $wanted = ;
my @imports = ("trim", "slug");
my $found = "no";

foreach my $name (@imports) {
    if ($name eq $wanted) {
        $found = "yes";
    }
}

print "wanted=$wanted\n";
print "found=$found\n";
use strict;
use warnings;

my $wanted = ;
my @imports = ("trim", "slug");
my $found = "no";

foreach my $name (@imports) {
    if ($name eq $wanted) {
        $found = "yes";
    }
}

print "wanted=$wanted\n";
print "found=$found\n";
use strict;
use warnings;

my $wanted = ;
my @imports = ("trim", "slug");
my $found = "no";

foreach my $name (@imports) {
    if ($name eq $wanted) {
        $found = "yes";
    }
}

print "wanted=$wanted\n";
print "found=$found\n";
import list An import list names the helpers that should be made available to the caller.