in reply to Uses for an lvalue subroutine

You may want to look at substr for an example to start with.