Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2018-06-23 03:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (125 votes). Check out past polls.

    Notices?