in reply to Re: Multiple variable assignments with RexExp
in thread Multiple variable assignments with RexExp
I cannot fathom why you would take this approach when the following would be much clearer and avoid the building of a list return which is being discarded:
s/\n/<br\/>/g for $var1, $var2;
Note too, that this isn't a "style" issue, but one of using the best function for a given task - Yes, map does fit the task here, however it is only the loop function of map which you are making use of, not the list return, a function better suited to a for or foreach loop.
|
|---|