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

Is there an export function in perl? If there is, what is the purpose of this function and what is its syntax? Thank You in advance!

Replies are listed 'Best First'.
Re: export function
by chipmunk (Parson) on Jan 23, 2001 at 00:34 UTC
    No, there is not a builtin export function in Perl.

    Many modules have a method called import for importing symbols into a calling package. The import method is not a builtin; some modules inherit Exporter's import method, while others define their own.

Re: export function
by runrig (Abbot) on Jan 23, 2001 at 00:32 UTC
    What exactly to you want to export, and where do you want to export it?

    There is an Exporter module, and it has an export function (but that particular function is probably not what); Or do you want to export data to a file or something completely different?