in reply to Why does Capture::Tiny require loading via BEGIN to successfully function?
Capture::Tiny::capture { print "STDOUT output to capture"; };
isn't a normal sub call. Something must define this syntax, and that something must define the syntax before the statement is compiled. (That something is capture's prototype.)
|
|---|