in reply to if/else syntax

If you want an "else" with an if, you need the brackets, "if" after the statement is a modifier, not a control block... if you just need the else, use unless
print "OK\n" unless $a == 1;

Update: I suppose you could do

print "OK\n" if $a == 1; print "Not OK\n" unless $a == 1;
But don't. ;)

                - Ant
                - Some of my best work - (1 2 3)