Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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?
[marto]: I don't think their inability to make any sense is related to alcohol
[Discipulus]: their?
[karlgoethebier]: marto: "their inability.." Perhaps the result of a wrong education?
[karlgoethebier]: or no education?
[choroba]: their = his or her
[Discipulus]: anyway once I proposed an automatic font decrease for post below -1, stepping every 5 votes: i'm still thinks it's a good idea but dunno if feasible
[shmem]: ...emulated dual in english

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2017-05-23 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?