in reply to Syntax Perl Version support $c = () = $a =~ /\./g
At least since 5.6. See Mini-Tutorial: Scalar vs List Assignment Operator and more specifically Perl Idioms Explained - my $count = () = /.../g.