A Peek into Pugs Internals #5

Warmup question

package MyMod;                 package A;      package B;
use base 'Exporter';
                               use MyMod;      use MyMod;
@EXPORT = 'foo';
                               foo();          foo();
sub foo {
    print 42, "\n";
}

                       # main.p5
                       use A;
                       use B;
Copyright © 2006 Gaal Yahas