in reply to display one time only
foreach my $j (1,2) { if ( !exists( ${"Name_$j"} )) { # # print your stuff here # last; } } [download]
rje