Sub::Exporter::Lexical - Exports subrtouines lexically
package Foo; use Sub::Exporter::Lexical exports => [ qw(foo bar), baz => \&bar, # i.e. the synonym of bar ], ; # ... { use Foo; foo(...); # Foo::foo(...) bar(...); # Foo::bar(...) baz(...); # Foo::bar(...), too } # foo, bar and baz are uninstalled foo(); # fatal! bar(); # fatal! baz(); # fatal!
Data::Util.
To install Data::Util, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Util
CPAN shell
perl -MCPAN -e shell install Data::Util
For more information on module installation, please visit the detailed CPAN module installation guide.