while ( 1 ) { # runs forever ... } if ( 0 ) { # won't run ... } sub foo { return 'something'; # or maybe not } if ( foo() ) { # only runs if foo() returns something ... }