[prev] [next]

use vs. require


use

package Foo::Bar;

require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(foobar);		# by Default
@EXPORT_OK = qw(foobar_ok);	# on Request

sub foobar { }
sub foobar_ok { }
1;