text: Perl6::Export - Implements the Perl 6 'is export(...)' trait
  # Perl 5 code... package Some::Module; use Perl6::Export; # Export &foo by default, when explicitly requested, # or when the ':ALL' export set is requested... sub foo is export(:DEFAULT) { print "phooo!"; } # Export &bar!"; } IMPORT { # This block.
  IMPORTblocks
  Perl 6 replaces the
  import subroutine with an
  IMPORT block. It's analogous to a
  BEGIN or
  END block, except that it's executed every time the corresponding module is
  use'd.
  Perl6::Export honours either the Perl5-ish:
  sub import {...}
  or the equivalent Perl6-ish:
  IMPORT {...}
  In either case the subroutine/block is passed the argument list that was specified on the
  use line that loaded the corresponding module. However, any export specifications (names of subroutines or tagsets to be exported) will have already been removed from that argument list before
  import/
  IMPORT receives. The author personally believes this is a feature, rather than a bug.
  Copyright (c) 2003, Damian Conway. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.