Treex::Core::Common - shorten the "use" part of your Perl codes
version 0.05222
Write just
use Treex::Core::Common;
Instead of
use utf8; use strict; use warnings; use Moose; use Moose::Util::TypeConstraints qw(enum); use MooseX::SemiAffordanceAccessor; use MooseX::Params::Validate qw(pos_validated_list); use Treex::Core::Log; use Treex::Core::Config; use Treex::Core::Resource; use List::MoreUtils qw(all any first_index); use List::Util qw(first); use Scalar::Util qw(weaken); use Readonly qw(Readonly); use Data::Dumper qw(Dumper);
This subroutine is automatically exported. Depending on the value of $Treex::Core::Config::params_validate it is either the (slow) one from MooseX::Params::Validate or a fast one, that does no type checking.
$Treex::Core::Config::params_validate
Martin Popel <popel@ufal.mff.cuni.cz>
Copyright © 2011 by Institute of Formal and Applied Linguistics, Charles University in Prague
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Treex::Core, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Treex::Core
CPAN shell
perl -MCPAN -e shell install Treex::Core
For more information on module installation, please visit the detailed CPAN module installation guide.