package Navigate::SeatOfPants;
our @EXPORT = qw(guess_direction_toward);
our @EXPORT_OK = qw(ask_the_skipper_about get_north_from_professor);
use Exporter;
our @ISA = qw(Exporter);
The following invocations would then be valid:
use Navigate::SeatOfPants; # gets guess_direction_toward
use Navigate::SeatOfPants qw(guess_direction_toward); # same
use Navigate::SeatOfPants
qw(guess_direction_toward ask_the_skipper_about);
use Navigate::SeatOfPants
qw(ask_the_skipper_about get_north_from_professor);
## does NOT import guess_direction_toward!
If any names are specified, they must come from either
@EXPORT or @EXPORT_OK, so this
request is rejected by Exporter->import:
use Navigate::SeatOfPants qw(according_to_GPS);