http://www.perlmonks.org?node_id=498502


in reply to Re^3: lhs substr(): refs vs. scalars
in thread lhs substr(): refs vs. scalars

Can you give a reference to the pre-5.8.5 bug? I recall there being a bug fixed where 3-arg substr misbehaved if the same call was used in both lvalue and non-lvalue mode, but that sounds like a different case than you describe.