Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Perl Concatenate vs Append Operatorby Your Mother (Archbishop) |
on Aug 19, 2014 at 17:21 UTC ( [id://1098008]=note: print w/replies, xml ) | Need Help?? |
FWIW, there are better ways to do what concatenation does… 90% of the time? Not that it’s wrong but that there are cleaner ways that are more flexible and easier to build on or manipulate or test or pass around; print join " ", @strings; for example v $string .= $_ . " " for @stuff. There are no good or bad operators but, for me, string concatenation, while it is naturally the way a lot of think/code at first, is code smell most of the time.
In Section
Seekers of Perl Wisdom
|
|