in reply to Re^2: grep commandin thread grep command
I don't see it as a *simple* spoiler, as people quite often try it in scalar context like $cnt += m{pattern}g; [download]
$cnt += m{pattern}g; [download]
But then the usual workaround is
$cnt += () = m{pattern}g; [download]
which is somewhat simpler and more natural than your reference-and-dereference trick.