Next | Tricks of the Wizards | 24 |
For exportation to another package one will use:
%Cookout::{'&grill'} := \&grill;
Stashes in Perl 6 are still hashes
They have names that end in ::
The key &grill in a stash is associated with the function object
The Exporter itself will do something like
my $calling_package = caller().package; my %Exporter::To:: := %{$calling_package _ '::'} ... %Exporter::To::{$name} := %Exporter::From::{$name};
Next | Copyright © 2003 M. J. Dominus |