Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Let a module call a sub of the caller

by clueless newbie (Friar)
on Sep 07, 2012 at 12:00 UTC ( #992295=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    say "Executing ".__PACKAGE__;
    INIT { say __PACKAGE__."::INIT"; };
    END { say __PACKAGE__."::END"; };
    
  2. or download this
    package Xyzzy;
    
    ...
    INIT { say __PACKAGE__."::INIT"; $external->(); };
    END { say __PACKAGE__."::END"; };
         1;
    
  3. or download this
    Executing Xyzzy
    Xyzzy::INIT
    ...
    Executing main
    main::END
    Xyzzy::END
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-08-29 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls