Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

export in perl

1 view
Skip to first unread message

Vamsi_Doddapaneni

unread,
Jun 22, 2005, 7:06:15 AM6/22/05
to Kimball, Conrad, dbi-...@perl.org

Hi Conrad,

I have a doubt regarding the usage of export.pm.

The doubt is I have an xx.pl file which uses yy.pm (use yy;)

Now this yy.pm has all subroutines and it tooo uses some other
packages......

Now the doubt is, if I call some subroutine of yy.pm in xx.pl which
isn't mentioned in @EXPORT = qw(....) of yy.pm . would it work in xx.pl
....

I know the ones mentioned for the EXPORT would be inherited to the
caller's namespace by default.

I thought for the subroutines not mentioned in EXPORT could be used by
other packages only in their complete qualified form. Ie (yy::sample)
and not by simply calling sample() in xx.pl

Please correct me if I am wrong.

Thanks,

Vamsi

Satyam computers Ltd

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

Michael A Chase

unread,
Jun 22, 2005, 10:01:19 PM6/22/05
to Vamsi_Doddapaneni, dbi-...@perl.org
On 06/22/2005 04:06 AM, Vamsi_Doddapaneni said:

> I have a doubt regarding the usage of export.pm.

This is not a DBI question, you would be better off asking on a general
Perl forum.

--
Mac :})
** I usually forward private questions to the appropriate mail list. **
Ask Smarter: http://www.catb.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

0 new messages