$ is the end of the substr'ed $_ !
But ignore this and see my update on Text::Wrap.
In reply to Re: Re: Re: Re: Scalar size limits by fglock in thread Scalar size limits by Anonymous Monk