Skip Menu |

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

Report information
The Basics
Id: 11580
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: Indentatoin
Just tried the module and it looks mighty useful! But one thing that doesn't look quite right is the indentation. Let's say I extract this to a method: ----- my $resHttp = $oResponse; if ($resHttp->is_success) { $win->tfHttp->Text($resHttp->headers_as_string()); $win->tfHtml->Text($resHttp->content()); } else { my $message = "Error getting url ($url): " . $resHttp->message; $win->tfHttp->Text($message); $win->tfHtml->Text($message); } ----- The resulting sub is: ----- sub dostuff { my $win = shift; my $oResponse = shift; my $url = shift; my $resHttp = $oResponse; if ($resHttp->is_success) { $win->tfHttp->Text($resHttp->headers_as_string()); $win->tfHtml->Text($resHttp->content()); } else { my $message = "Error getting url ($url): " . $resHttp->message; $win->tfHttp->Text($message); $win->tfHtml->Text($message); } return ($message, $resHttp); } ----- So my cosmetic objection to that would be a) the indentation level, and b) the extra blank line at the top which could automatically be removed. Just a wishlist item. /J