| Next | February 2001 | Slide #34 |
Recall:
package Geometry;
use Exporter;
@ISA = ('Exporter');
When you say use Geometry 'circle_area' this loads Geometry.pm
Then performs importation
Actually it does
Geometry->import('circle_area');
There is no Geometry::import, so @ISA is searched
Exporter::import is called:
Exporter::import('Geometry', 'circle_area');
This is how Exporter knows what to export
| Next | ![]() |
Copyright © 2001 M-J. Dominus |