Just out of curiosity (it doesnt really matter in my case): which one would be the more (CPU- and memory-) efficient one?
It hardly ever matters. As a wild guess I would say that since the former involves doing something and then undoing it and that something is taking a reference, it is more computationally intensive. In case of doubt
use Benchmark;
I may well (and happily!) prove wrong...
In reply to Re^3: Counting the number of items returned by split without using a named array
by blazar
in thread Counting the number of items returned by split without using a named array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |