(sub { print 1; })(); sub { print 1; }();
I tried various ways, all are wrong...
You need arrow operator:
(sub { print 1;})->();