vrao has asked for the wisdom of the Perl Monks concerning the following question:

Hi , How to read all @EXPORT vars of y.pm in the file say x.pl where i use y.pm .

Replies are listed 'Best First'.
Re: How read all @EXPORT values
by Aragorn (Curate) on May 20, 2004 at 12:21 UTC
    (Don't know if I 'm understanding you correctly)

    Iterate through the @EXPORT variable of the package you're using:

    foreach (@y::EXPORT) { print "$_\n"; }
    Arjen
Re: How read all @EXPORT values
by kutsu (Priest) on May 20, 2004 at 15:39 UTC

    If aragorn's solution didn't work for you y.pm may not have anything set in @EXPORT, though it might have something in @EXPORT_TAGS or @EXPORT_OK.

    "Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce