is acceptable, this:if($foo == 7) { print "foo is 7\n"; } else { print "foo is not 7\n"; }
is not. Sure, perl will accept it (I consider this to be a bug in perl), and it'll run, but anyone writing it should be beaten savagely. It's VERY hard to read.unless($foo != 7) { print "foo is 7\n"; } else { print "foo is not 7\n"; }
In reply to Re: if variants
by DrHyde
in thread if variants
by apotheon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |