View Single Post
  #4  
Old 09-01-2007, 01:25 PM
sfisque
Hill Giant
 
Join Date: Oct 2006
Posts: 248
Default

the error is in the operator.

"==" is for numeric comparison, "eq" is for string comparison.

your if should read:

Code:
if($text=~/hail/i && $class eq 'Warrior' )
{
  # do some work in here
}
== sfisque
Reply With Quote