in reply to Why isn't this subroutine working?

elsif expects to get a condition as well. so your example should be

if (!$Ok) { print "x"; } elsif ($some_other <> $condition) { print "y"; }

Not including the condition does indeed make the elsif into a syntax error, and elsf does indeed make it run, but it doesn't make it work.

Oh and please please please don't embed variables in SQL unless you properly untaint them first, and even then only do it if someone is holding a gun to your head ;)

Eric Hodges