1Exporter::Easiest(3)  User Contributed Perl Documentation Exporter::Easiest(3)
2
3
4

NAME

6       Exporter::Easiest - Takes even more drudgery out of Exporting symbols
7

SYNOPSIS

9       In module YourModule.pm:
10
11         package YourModule;
12         use Exporter::Easiest q(
13           EXPORT => :tag1
14           OK => munge frobnicate
15               :tag1 => a b c
16               :tag2 => :tag1 d e f
17           FAIL => f g h
18         );
19
20       In other files which wish to use YourModule:
21
22         use ModuleName qw(frobnicate);      # import listed symbols
23         frobnicate ($left, $right)          # calls YourModule::frobnicate
24

DESCRIPTION

26       The Exporter::Easiest module is a wrapper around Exporter::Easy. It
27       allows you to pass the arguments into Exporter::Easy without all those
28       tiresome []s and qw()s. You pass arguments in as a string or an array
29       of strings. You no longer need to bracket lists or take references. If
30       want, you can also leave out the TAGS key and just put tag definitions
31       along with the other keys.
32
33       The important thing to remember is that tags should be preceded by ':'
34       everywhere, including to the left of the '=>', otherwise it'll get
35       confused.  And don't worry I haven't done something horribly
36       pythonesque, whitespace is not significant, all the parsing logic
37       revolves around the use of ':'s and '=>'s
38

SEE ALSO

40       For the real details on exporting symbols see Exporter and
41       Exporter::Easy.
42

REPOSITORY

44       <https://github.com/neilb/Exporter-Easy>
45

AUTHOR

47       Written by Fergal Daly <fergal@esatclear.ie>.
48

LICENSE

50       Under the same license as Perl itself
51
52
53
54perl v5.34.0                      2021-07-22              Exporter::Easiest(3)
Impressum