Who cares which one is faster ?
Larry Wall,
Merlyn, And Tom Christiansen who wrote it in the Camel book...
gregw who ask the question, all those who answered...
They don't do the same thing
But they often can achieve the same result.
And usually people use them without even noticing the difference...
But you may be right if you say that we should underline the difference rather than to focus on the speed.
Anyway knowing
ALL the aspects of
my and
local (and speed is one of them) can only be a good thing IMHO.
UPDATE :
This was NOT supposed to be an attack toward Dominus...
But just a rather (goofed) attempt to say : This question (about the speed difference) is interesting even if it's not the most important one (the often ignored difference is more important to me)
The middle of my post, which seems to be the controversial point,
Is not saying my == local ! I just give my idea on why they are usually associated...
I JUST put in bold the important sentence in my post, no other modification was made...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.