Subject: | Doesn't trigger on last statement in script without trailing semicolon |
ilmari@fenchurch:~$ perl -M-indirect -e 'package Banana; sub new {}; new
Banana;'
Indirect call of method "new" on object "Banana" at -e line 1.
ilmari@fenchurch:~$ perl -M-indirect -e 'package Banana; sub new {}; new
Banana'
ilmari@fenchurch:~$
Reproduced with both 5.10.0-19ubuntu1 and 5.8.8-12ubuntu0.4 on
x86_64-linux-gnu-thread-multi.