Kenneth Lee <[EMAIL PROTECTED]> writes: > it seems all the "lvalue sub" RFCs haven't mentioned this. > currently we can do > > $str = "foo bar"; > substr($str, 4, 0) = "baz "; > > and $str will become "foo baz bar". should we be able to do > this with lvalue-subs? how can one returns "pointer" to a > portion of a scalar? This is exactly what RFC 132 addresses. -- Johan
- partial assignment using lvalue? Kenneth Lee
- Re: partial assignment using lvalue? Michael Fowler
- Re: partial assignment using lvalue? Piers Cawley
- Re: partial assignment using lvalue? Johan Vromans
- Re: partial assignment using lvalue? Damian Conway