On Jul 25, Teresa Raymond said:
>I tried the following code to test for bad characters but keep
>getting my error msg though the values passed do not contain chars
>that are not "A-Za-z0-9_@.-" (I also reread my last post and found
>that my English articulation was very poor, I'm grateful that anyone
>responded!).
You're using !=, when you "meant" to use !~, but you really want to use =~
>{if ($params{$i}!=m/[^\w@.-]/g)
if ($params{$i} =~ /[^\w\@.-]/) {
# badness
}
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun.
Are you a Monk? http://www.perlmonks.com/ http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc. http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter. Brother #734
** Manning Publications, Co, is publishing my Perl Regex book **
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]