Um, that's a list assignment in scalar context you've got there; probably not what you intended:a if (my $o) = b; c unless $o;
$ perl -wl print "if!" if (my $o) = 0; print "unless!" unless $o; __END__ if! unless!
In reply to Re: Useless unless
by ysth
in thread Useless unless
by GrandFather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |