in reply to Recreation of lvalue substr function using lvalue subroutines

If I recall correctly, an lvalue has to return an assignable piece of data.

The problem is that you want to assign to part of a scalar value which isn't really possible. You might be able to play with overload to have an array masquerade as a scalar. (That way you could assign to elements of the array)

-Lee

"To be civilized is to deny one's nature."

  • Comment on Re: Recreation of lvalue substr function using lvalue subroutines