in reply to While loop
while(defined($input = <>))) { chomp $input; if ($input eq 'yes') { print "Yes entered for system.\n"; last; } elsif ($input eq 'no') { print "No entered for system.\n"; last; } } [download]