I tried it with emacs -Q on version 26.3 and it works for me: it moves the cursor for a second to the matching opening brace if that is visible and it prints the matching line in the echo area if it is not.
Check the value of post-self-insert-hook with C-h v post-self-insert-hook RET - my setting is:
Try setting perl-continued-statement-offset.
(setq perl-continued-statement-offset 0)
See it's documentation (via Ctrl-H v):
perl-continued-statement-offset is a variable defined in ‘perl-mode.el’.
Its value is 4
This variable is safe as a file local variable if its value
satisfies the predicate ‘integerp’.
Extra indent for lines not ...