in reply to Re: Reversed .= operator
in thread Reversed .= operator
Yes, of course, there is more than one way to do it. I would use
over$string = $prefix . $string
myself (for readability, not because it's two fewer characters) ... but I want a (built-in) operator, dammit!substr $string, 0, 0, $prefix
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reversed .= operator
by choroba (Cardinal) on Apr 29, 2016 at 22:25 UTC | |
by pryrt (Abbot) on Apr 29, 2016 at 22:38 UTC | |
by choroba (Cardinal) on Apr 29, 2016 at 22:44 UTC | |
by BrowserUk (Patriarch) on Apr 30, 2016 at 03:24 UTC | |
by marioroy (Prior) on Apr 30, 2016 at 19:38 UTC | |
by choroba (Cardinal) on Apr 30, 2016 at 19:45 UTC | |
|