Exporter(3p) Perl Programmers Reference Guide Exporter(3p)
Exporter(3p) Perl Programmers Reference Guide Exporter(3p) # Exporter(3p) Perl Programmers Reference Guide Exporter(3p) NNAAMMEE # Exporter - Implements default import method for modules SSYYNNOOPPSSIISS # In module _Y_o_u_r_M_o_d_u_l_e_._p_m: package YourModule; use Exporter 'import'; our @EXPORT_OK = qw(munge frobnicate); # symbols to export on request or package YourModule; require Exporter; our @ISA = qw(Exporter); # inherit all of Exporter's methods our @EXPORT_OK = qw(munge frobnicate); # symbols to export on request or package YourModule; use parent 'Exporter'; # inherit all of Exporter's methods our @EXPORT_OK = qw(munge frobnicate); # symbols to export on request In other files which wish to use "YourModule": use YourModule qw(frobnicate); # import listed symbols frobnicate ($left, $right) # calls YourModule::frobnicate Take a look at "Good Practices" for some variants you will like to use in modern Perl code. ...