Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Exporting symbols from another package

by BrowserUk (Patriarch)
on Mar 29, 2010 at 19:39 UTC ( [id://831691]=note: print w/replies, xml ) Need Help??


in reply to Exporting symbols from another package

Perhaps the simplest way would be to alias the functions in the Foo namespace:

*transform_one = *Foo::Transforms::transform_one; *transform_two = *Foo::Transforms::transform_two;

And then your exports become just:

our @EXPORT_OK = qw( transform_one transform_two );

But then that questions why you've put those functions into a different namespace in the first place?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://831691]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (8)
As of 2024-04-19 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found