Thread Fehlerhafte Eingabe erzeugt 500 Error anstatt Scriptfehlermeldung
(38 answers)
Opened by Auctioneer at 2012-12-01 02:58
wenn man nur auf ungültige zeichen prüfen will, wäre im übrigen statt einer regex das hier besser:
if ($loginname =~ tr/a-zA-Z0-9//c) { # ungültig Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: ![]() ![]() |