Evo::Loaded
version 0.0405
Mark module as loaded. Mostly for tests and examples in the docs, to be able for you just copy-paste-run
If you write several packages in one file and try to use them
use
package main; use Evo; { package Foo; use Evo; package Bar; use Evo -Loaded; } use Bar; use Foo;
You'll get "Can't locate Foo.pm in @INC" at use Foo. That's because perl tries to load module. use Bar doesn't causes the error because marked as loaded.
use Foo
use Bar
So if you see this in examples, you can safely remove it from the real code, if you put package Bar in the separate Bar.pm file
Bar
Bar.pm
package main; use Evo; { package Bar; use Evo -Loaded; }; # now use can use this without "Can't find module..." use Bar;
alexbyk.com
This software is copyright (c) 2016 by alexbyk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Evo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Evo
CPAN shell
perl -MCPAN -e shell install Evo
For more information on module installation, please visit the detailed CPAN module installation guide.