if ( defined $rd_data && $rd_data ne '' ) { # mach was } else { print "Kein Inhalt...\n"; }