in reply to How to dump closures

Data::Dumper supports at least subroutines and I think also closures by use of B::Deparse. I'm not sure how comprehensive the dumping will be if you dump several closures that close over the same variables, but that's a problem shared by all dumpers.

Replies are listed 'Best First'.
Re^2: How to dump closures
by meta4 (Monk) on May 04, 2010 at 14:02 UTC
    But, that is what I think I've solved here. With this method I can close over the same variables as many times as I want and all the closed over variables are dumped in separate lexical spaces; they keep their original name; and they don't pollute the enclosing names space.