Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Mo::importer(3)	      User Contributed Perl Documentation      Mo::importer(3)

Name
       Mo::importer - Write your own import() extension

Synopsis
	   package MyMo;

	   sub importer	{
	       my ($caller, @args) = @_;
	       ...
	   }

	   use Mo qw[importer other features];

Description
       Sometimes you need to add your own logic	during Mo::import time.	This
       feature lets you	do that	by defining your own "importer"	subroutine. It
       will pass you the original caller pkg and the args passed in.

Note
       You need	to define the "importer" sub before you	"use Mo	...", for
       (hopefully) obvious reasons. :\

perl v5.24.1			  2016-07-06		       Mo::importer(3)

Name | Synopsis | Description | Note

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Mo::importer&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help