It's confusing syntax. I thought you were assigning the return value of running the regex on the return value of your method call.
You've never used substr( $buffer, $n, $m ) =~ s[this][that]g; ?
No, I find that hard to read. I would use a temp variable there. Your alternative syntax example looks much clearer to me. I expect that the inefficient copying you're worried about would happen either way.
In reply to Re^7: Assignable Subroutines
by perrin
in thread Assignable Subroutines
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |