There is only one substr lvalue. You can't have more than one in existence at once and have things work. Sorry.
I think this limitation is being removed but I don't recall the schedule.
Update: My second super search (for "substr lvalue one" starting in 2002) found LVALUE refs which documents the problem including a patch that will be included in Perl 5.10.
- tyeIn reply to Re: Inconsistent lvalue subroutine behaviour. (highlander syndrome)
by tye
in thread Inconsistent lvalue subroutine behaviour.
by BazB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |