defined_or( $method, '' ); # changes the caller's variable sub defined_or { if ( ! defined $_[0] ) { $_[0] = $_[1]; } }