
User Input Verification
Wrong:
if ( $something !~ /$BADCHARS/ ) {
Right
if ( $something =~ /^ $GOODCHARS $/x ) {
if ( $something =~ /^ $GOODPATTERN $/x ) {
Copyright 2003, Bri Hatch of Onsight, Inc.
Presented at SPUG, 2003.
Presentation created using vim and MagicPoint.