eval{ $self->$code }; if($@){ $self->{CONTENT} = $@; # eigene Fehlermeldung aus die("Eingabefehler: ..."); }