in reply to $* is no longer supported
According to Perl Special Variables Quick Reference you should be using the /m multiline modifier. See perlre.
Update: added link