NAME

Treex::Core::Common - shorten the "use" part of your Perl codes

VERSION

version 2.20160629

SYNOPSIS

Write just

use Treex::Core::Common;

Instead of

use utf8;
use strict;
use warnings;
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 Treex::Core::Types;
use Treex::Core::Files;
use List::MoreUtils qw(all any none uniq first_index);
use List::Util qw(first min max);
use Scalar::Util qw(weaken);
use Readonly qw(Readonly);
use Data::Dumper qw(Dumper);

SUBROUTINES

$language_name = get_lang_name($iso639_code)
$bool = is_lang_code($iso639_code)
pos_validated_list

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.

AUTHOR

Martin Popel <popel@ufal.mff.cuni.cz>

COPYRIGHT AND LICENSE

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.