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

Re^10: disable functions if module not installed

by lepetitalbert (Abbot)
on Nov 04, 2008 at 13:55 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://721396]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-03-19 08:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found