in reply to Regular expressions
if ( $temp2 =~ /[^a-zA-Z]/ ) { die "Wrong input"; } else { # Do something useful }
This is a very strong way to work. You're whitelisting and not blacklisting, which is best.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular expressions
by DDH (Initiate) on Apr 13, 2005 at 14:08 UTC |