while( ) { print defined $_ ? "Defined! " : "Undefined! ", $_; } __END__ Please to be not misinforming people with incorrect information.