partial assignment using lvalue?
[email protected] (Kenneth Lee) Wed, 30 Aug 2000 14:26:08 +0800
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Message-ID | <[email protected]> |
dear all, 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? kenneth