Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Learning perlisms leads to experience, wisdom and discoveries that whitespace & idioms are lazy

by kappa (Chaplain)
on Dec 23, 2004 at 13:06 UTC ( [id://417077]=note: print w/replies, xml ) Need Help??


in reply to Re: Learning perlisms leads to experience, wisdom and discoveries that whitespace & idioms are lazy
in thread Learning perlisms leads to experience, wisdom and discoveries that whitespace & idioms are lazy

By the way, do you know why the hash slice method is faster than looping? I measured and looks like it really is and by a significant amount of up to 25%. Seems strange.
--kap

Replies are listed 'Best First'.
Re^3: Learning perlisms leads to experience, wisdom and discoveries that whitespace & idioms are lazy
by kelan (Deacon) on Dec 23, 2004 at 14:57 UTC

    Hash slicing does the assignment loop in C; explicitly looping does it in Perl.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found