Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Self Testing Modules

by Sheol (Novice)
on Dec 18, 2005 at 00:06 UTC ( #517531=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if __package__ eq __main__:
       # do stuff to test to see if package is working.
    
  2. or download this
    if($main == "hardcoded::package::name") { }
    if($main == $PROGRAM_NAME) { }
    if($main->isa("hardcoded::package::name")) { }
    
  3. or download this
    $debug && print "some code";
    $debug && print "some more code"
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2021-06-24 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (128 votes). Check out past polls.

    Notices?