Another never even attempts to import has_rw
from HasRw.
If you did, would have have to do so before the call to has_rw
is compiled, so it would have to be done at compile time. Don't forget that Moose::Exporter->setup_import_methods
would have to be executed even before that!
Using use
did all this for you. The inline equivalent of use HasRw;
is
BEGIN {
package HasRw;
...
$INC{'HasRw.pm'} = 1;
}
use HasRw;