Do you know where your variables are? | |
PerlMonks |
Re^3: elsif chain vs. dispatchby almut (Canon) |
on Apr 27, 2009 at 02:53 UTC ( [id://760242]=note: print w/replies, xml ) | Need Help?? |
I had tried that. And had first made the same mistake (and thus got a speed boost of around 800% :) —> the $$_[0] would need to be ${$_[0]}. With that fixed, there's virtually no difference... In other words, the string isn't copied, even without using references ($_[0] is an alias).
In Section
Seekers of Perl Wisdom
|
|