use module
Hi
What is the difference between
use Module
use Module ()
use Module (func1 func2)
?
And, what is the different require and use?
Thanks
Re: use module
In article <NSbGh.1206825$5R2.262557 [at] pd7urf3no>,
"a" <a [at] mail.com> writes:
> What is the difference between
> use Module
> use Module ()
> use Module (func1 func2)
> ?
> And, what is the different require and use?
``perldoc -f use'' and ``perldoc -f require'' explain it better than
I could.
--
erik [at] selwerd.nl
Re: use module
"a" <a [at] mail.com> wrote in message news:NSbGh.1206825$5R2.262557 [at] pd7urf3no...
> Hi
>
> What is the difference between
> use Module
Will import only whatever is in [at] Module::EXPORT
> use Module ()
will import nothing.
> use Module (func1 func2)
will import only func1 and func2 (but only if func1 and func2 are in
[at] Module::EXPORT_OK).
See 'perldoc Exporter'.
Note that functions that have not been imported can still be accessed, but
to do that they have to be called by their fully qualified names - ie
Module::func1() and Module::func2(), instead of just func1() and func2().
Cheers,
Rob
Re: use module
On Mar 3, 6:31 pm, "Sisyphus" <sisyph... [at] nomail.afraid.org> wrote:
> "a" <a... [at] mail.com> wrote in messagenews:NSbGh.1206825$5R2.262557 [at] pd7urf3no...
> > Hi
>
> > What is the difference between
> > use Module
>
> Will import only whatever is in [at] Module::EXPORT
>
> > use Module ()
>
> will import nothing.
>
> > use Module (func1 func2)
>
> will import only func1 and func2 (but only if func1 and func2 are in
> [at] Module::EXPORT_OK).
.... or [at] Module::EXPORT
Paul Lalli