also I like ? operator instead of if'smy $i ||=0 ; my $i =shift || 0;
is !~ an optimisation over just negating the result of =~, I dunno but I think !~ looks better$i?$i=1:$i=0;
In reply to Re: Re: Re: Idiomatic optimizations
by hakkr
in thread Idiomatic optimizations
by Juerd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |