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.)
In reply to Re: Why does Capture::Tiny require loading via BEGIN to successfully function?
by ikegami
in thread Why does Capture::Tiny require loading via BEGIN to successfully function?
by Wyrdweaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |