in reply to Re: How do I assign & substitute in one statement?in thread How do I assign & substitute in one statement?
$sBegin = 'hello world'; s/hello/goodbye/g for ($sEnd = $sBegin); print $sEnd; [download]