Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^10: disable functions if module not installed

by lepetitalbert (Abbot)
on Nov 04, 2008 at 13:55 UTC ( #721396=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub AUTOLOAD {
        # This AUTOLOAD is used to 'autoload' constants from the constant(
    +)
    ...
       ($constname = $AUTOLOAD) =~ s/.*:://;
    
    print "\nDEBUG " . $constname . "\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2020-10-22 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (228 votes). Check out past polls.

    Notices?