in reply to Re (tilly) 2: subroutines and namespace
in thread subroutines and namespace

The perils of doing an off-the-cuff answer to a post. When I implemented it I eventually had buckets of error checks in the routine itself (e.g.  if defined) and checked the results with an or die "\$routine failed with error $@". I also had almost every second line printing into a log file (my personal favourite way of documenting code).

But after that there's not much difference between the evals and real subs except some faulty code can stomp all over variables in your current namespace.

____________________
Jeremy
I didn't believe in evil until I dated it.