Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: RFC: User subroutine hinting interface for autodieby lodin (Hermit) |
on Mar 07, 2009 at 17:50 UTC ( [id://749067]=note: print w/replies, xml ) | Need Help?? |
I like the subroutine idea for specifying hints. @_ could be the return values, and $_ aliased to $_[0]. Perhaps something like would work. This makes it easy to define common behaviours and to compose them in an arbitrary way. If access to e.g. the arguments to the function is needed (for e.g. unlink) then that would have to be provided some other way, for instance via a localized global variable in autodie::hints. Just an idea ... lodin
In Section
Meditations
|
|