Skip Menu |

This queue is for tickets about the Devel-Refactor CPAN distribution.

Report information
The Basics
Id: 11581
Status: open
Priority: 0/
Queue: Devel-Refactor

People
Owner: SSOTKA [...] cpan.org
Requestors: johanl [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.04
Fixed in: (no value)



Subject: Parameter style
The parameters to an extracted sub are shifted from @_. I usually use this style for subroutines: my ($param1, $param2) = @_; and this style for methods: my $self = shift; my ($param1, $param2) = @_; What do you think of an option to support different styles of generating the param declaration? /J
I'll have to think abou this one for a while. The number of styles for parameter initialization are likely to be large, and I haven't figured out a way to let the user specify their own unique style. So, I may look through some of the perl books with style guides in them and offer a few styles, but I think it would be more useful if I could figure out a way to let the user define their own. -Scott