ehm, that sounds like a very risky approach for tuning an edge case:
DB<7> sub tst { $_[0]=3 } DB<8> @a=(1..10) DB<9> tst $#a DB<10> p @a 1234
personally I wouldn't care too much about the performance penalty, but the possible side-effects after forgetting that $#a is an lvalue and $_[0] is an alias, should be a reason enough to stick with scalar @a.
Cheers Rolf
In reply to Re^6: Does @{ } copy arrays?
by LanX
in thread Does @{ } copy arrays?
by tford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |