print "OK\n" unless $a == 1;
Update: I suppose you could do
But don't. ;)print "OK\n" if $a == 1; print "Not OK\n" unless $a == 1;
In reply to Re: if/else syntax
by suaveant
in thread if/else syntax
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |