Ken Fox wrote:
Won't @message need lazy evaluation? How will Perl know to delay interpolation until the result of the "macro" is called at run time?
Good point. It would also need to be slurped. So that's:
sub debug is immediate is exported (*@message is lazy) { return $debugging ?? { print $*STDERR: @message; } :: {;} } Damian