Subject: | Add support for named arguments |
I do a lot of code using named arguments in hashrefs. I'd like it if a simple syntax (other than adding POD in the comment block above a given method) was provided for lists. E.G.:
# Does a thing
#
# Recognized arguments:
#
# * 'arg1' Something
# * 'arg2' Something else
sub method {} # $ret (\%args)
Would generate:
=head2 method
my $ret = $self->method(\%args)
Does a thing.
Recognized arguments:
=over 4
=item 'arg1'
Something
=item 'arg2'
Something else
=back
=cut
I'm happy to help with this if you can point me to where the POD is actually generated.