sub capture(&@); ... require Capture::Tiny; Capture::Tiny->import('capture'); capture { } ...; #### capture( sub { ... }, ... );