NAME

Evo::Loaded

VERSION

version 0.0405

DESCRIPTION

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

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.

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

SYNOPSYS

package main;
use Evo;

{

  package Bar;
  use Evo -Loaded;
};

# now use can use this without "Can't find module..."
use Bar;

AUTHOR

alexbyk.com

COPYRIGHT AND LICENSE

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.