Доброго всем
Mojo::Base::Lib
¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !
VERSION
0.002
NAME
Mojo::Base::Lib - use Mojo::Base::Lib 'SomeBaseClass',-lib, qw(rel/path/lib /abs/path/lib);
SYNOPSIS
Based on Mojo::Base where you found three forms usage.
This module provide a fourth extended form for add extra lib directories to perl's search path. See <lib>
use Mojo::Base -lib, qw(rel/path/lib /abs/path/lib);
use Mojo::Base -lib, ['lib1', 'lib2'];
use Mojo::Base '-lib:lib1:lib2;lib3';
use Mojo::Base -strict, qw(-lib lib1 lib2);
use Mojo::Base qw(-base -lib lib1 lib2);
use Mojo::Base 'SomeBaseClass', qw(-lib lib1 lib2);
use Mojo::Base qw(-lib lib1 lib2), 'SomeBaseClass'; # same above, different order allow
For relative lib path will use FindBin module and $FindBin::Bin
is prepends to that lib. Libs always applied first even its last on flags list.
All three Mojo::Base forms works also.
SEE ALSO
AUTHOR
Михаил Че (Mikhail Che), <mche[-at-]cpan.org>
BUGS / CONTRIBUTING
Please report any bugs or feature requests at https://github.com/mche/Mojo-Base-Lib/issues.
COPYRIGHT
Copyright 2016 Mikhail Che.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.