There's more than one way to do things | |
PerlMonks |
Re^3: Case insensitive string comparison (updated x2)by AnomalousMonk (Archbishop) |
on Jun 28, 2020 at 03:16 UTC ( [id://11118615]=note: print w/replies, xml ) | Need Help?? |
... a ref to a single scalar ... My guess about a possible rationale for this is that the strings being handled are in reality very long and DAN0207 wants to avoid making a bunch of copies of these long strings (e.g., to pass to subroutines). In a case like this, I'd agree that taking a reference to a scalar (string) and passing it around could be quite advantageous in the right circumstances. But this is all just guesswork. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|