Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: conditional self-execution

by gam3 (Curate)
on Jan 28, 2008 at 03:24 UTC ( #664617=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    do "q.pl";  # prints module
    
  2. or download this
    # q.pl
    if (__FILE__ eq $0) {
    ...
        print "module\n";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2020-11-29 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?