The following one-liner neatly illustrates why length is faster on strings than numbers...
perl -MDevel::Peek -e'Dump($_) for "42", 42'
In reply to Re^2: length() and the Schwartzian transform
by tobyink
in thread length() and the Schwartzian transform
by hazylife
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |