So use Benchmark and Devel::Size (or similar modules) to find out what's best for you.
(Update: with cmp you compare with string semantics, are you sure you want that?)
In reply to Re: Which one is best for optimization
by moritz
in thread Which one is best for optimization
by luckypower
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |