http://qs321.pair.com?node_id=120335


in reply to Re (tilly) 2: passing subroutine arguments directly into a hash
in thread passing subroutine arguments directly into a hash

Nice. I agree with you in that its difficult to do this stuff elegantly, and this is a decent solution. One minor thought though is that you might want to use the poorly documented
local $Carp::CarpLevel=1;
before your confess calls to make them appear from the correct perspective. Other than that looks good and might get borrowed (if you dont mind...)

Yves
--
You are not ready to use symrefs unless you already know why they are bad. -- tadmc (CLPM)