in reply to •Re: Re: •Re: Re: •Re: How to use require...
in thread How to use require...
I was a little unsure because even though I didn't have the two lines "use base qw(Exporter); @EXPORT_OK = qw(login login2);" in Login.pm, the code still works:
I thought it was something unusual about "autouse" that precluded the need to use Exporter in Login.pm. But now that I've learnt that Login.pm needs to be a proper module, I'll make the change right away :)## Login.pm package Login; sub login { ... } sub login2 { ... } 1; ## main: use autouse Login => qw(login login2);
|
|---|