in reply to Re^6: Assignable Subroutines
in thread Assignable Subroutines
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Assignable Subroutines
by BrowserUk (Patriarch) on Jan 25, 2005 at 18:09 UTC | |
by perrin (Chancellor) on Jan 25, 2005 at 21:00 UTC |