Pcore::Core::Exporter
use Pcore::Core::Exporter; our $EXPORT = [ ...SYMBOLS TO EXPORT... ]; or our $EXPORT = { TAG1 => [qw[sub1 $var1 ... ]], TAG2 => [qw[:TAG1 sub2 $var2 ... ]], DEFAULT => [qw[:TAG1 :TAG2 sym3 ...]], }; our $EXPORT_PRAGMA = { trigger => 0, option => 1, }; ... use Package qw[-trigger -option OPTION_VALUE :TAG1 !:TAG2 sub1 !sub2 $var1 !$var2 @arr1 !@arr2 %hash1 !%hash2 *sym1 !*sym2], {}; # export aliases use Package qw[$SYM=alias1 @SYM=alias2 sub=alias3]
Tag ":ALL" is reserver and is created automatically.
If no symbols / tags are specified for import - ":DEFAULT" tag will be exported, if defined.
To install Pcore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pcore
CPAN shell
perl -MCPAN -e shell install Pcore
For more information on module installation, please visit the detailed CPAN module installation guide.