Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Very basic package / module question...

by rir (Vicar)
on Feb 05, 2010 at 16:30 UTC ( #821601=note: print w/ replies, xml ) Need Help??


in reply to Very basic package / module question...

Not very basic at all.

You can put your goodbye into the ITALIAN namespace and import it by hand into your working namespace as shown below. This kind of stuff scales poorly.

#!/usr/bin/perl use strict; use warnings; use SPEAK::ITALIAN; package SPEAK::ITALIAN; sub goodbye{ print GOODBYE . " in Italiano\n"; } package main; use vars "*goodbye"; *goodbye = \&SPEAK::ITALIAN::goodbye; hello(); goodbye(); __DATA__ Hello in Italiano Goodbye in Italiano
Be well,
rir


Comment on Re: Very basic package / module question...
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2014-07-25 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls