Pay closer attention to where you are putting your brackets. Look at Charmy's example above. Also, you might want to try something like this to eliminate duplicate code (untested):
Code:
if ($text =~ /hail/i)
{
if ($class eq "Rogue")
{
if ($ulevel > 64)
{
quest::say ("you're over 64!");
}
else
{
quest::say ("you're not over 64!");
}
}
else
{
quest::say ("begone! you're not a rogue!");
}
}
Also, if you do not know what is causing a problem with your perl,
run it with perl, rather than through the emu!