Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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


Comment on Re^2: length() and the Schwartzian transform
Select or Download Code

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 studying the Monastery: (22)
As of 2015-07-28 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls