summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-10-09 19:43:10 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-10-09 19:43:10 +0000
commitba5725f86ec53dd2a7f696a72a177a926c615c9e (patch)
tree9202f64f33adad7fcb643a2a43dae915c73bf20a /lib
parent865be8325e7f3f3238a9773fffa973af7594f852 (diff)
downloadperl-ba5725f86ec53dd2a7f696a72a177a926c615c9e.tar.gz
fix Exporter::export_to_level() documentation
p4raw-id: //depot/perl@4324
Diffstat (limited to 'lib')
-rw-r--r--lib/Exporter.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Exporter.pm b/lib/Exporter.pm
index bc07e9b2be..d74f07f311 100644
--- a/lib/Exporter.pm
+++ b/lib/Exporter.pm
@@ -196,11 +196,12 @@ Exporter has a special method, 'export_to_level' which is used in situations
where you can't directly call Export's import method. The export_to_level
method looks like:
-MyPackage->export_to_level($where_to_export, @what_to_export);
+MyPackage->export_to_level($where_to_export, $package, @what_to_export);
where $where_to_export is an integer telling how far up the calling stack
to export your symbols, and @what_to_export is an array telling what
-symbols *to* export (usually this is @_).
+symbols *to* export (usually this is @_). The $package argument is
+currently unused.
For example, suppose that you have a module, A, which already has an
import function: