in reply to Why won't it work?

Because the \ after the $ escapes the /, so the regex looks like
/$\/;print $a.$/
-- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}