On Fri, 3 Jul 2015 12:48:22 +0530
ayush kabra <ayush.kab...@gmail.com> wrote:

> Hi Team,
> 
> I want to make customized module on perl but i don't know how to make
> it. i have checked on google but it's little bit confusing. i am not
> able to understand what is the meaning of EXPORTER_OK ,IMPORT and
> there is lot of thinh which i am not able to understand. Can you
> please send me some examples of cusotmized module and explain it's
> functionality. what is the work of @ISA, and @INA path?.
> 
> Please help me on this.
> 
> Thanks in Advance...!!!!!!
> 
> 
> Regards,
> Ayush Kabra

Here's the code I use:

# --------------------------------------
# Exports
use  Exporter      qw( import );
our @EXPORT      = qw( );
our @EXPORT_OK   = qw( );
our %EXPORT_TAGS = (
  all  => [ @EXPORT, @EXPORT_OK ],
);

# --------------------------------------

@EXPORT is the list of default exports. @EXPORT_OK is the list of
everything that can be exported.


-- 
Don't stop where the ink does.
        Shawn

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to