if ( $0 eq __FILE__ ) { # Code to run when the module IS the program }