my $eingabe; while ($eingabe ne 'exit') { $eingabe = ; chmop($eingabe); # if ($eingabe eq '1') { ... }