Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: length() and the Schwartzian transform

by tobyink (Abbot)
on Feb 27, 2014 at 14:54 UTC ( #1076403=note: print w/ replies, xml ) Need Help??


in reply to Re: length() and the Schwartzian transform
in thread length() and the Schwartzian transform

The following one-liner neatly illustrates why length is faster on strings than numbers...

perl -MDevel::Peek -e'Dump($_) for "42", 42'
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1076403]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (14)
As of 2016-06-28 14:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (359 votes). Check out past polls.