Skip Menu |

This queue is for tickets about the HTTP-Lite CPAN distribution.

Report information
The Basics
Id: 2796
Status: resolved
Priority: 0/
Queue: HTTP-Lite

People
Owner: help [...] thetoybox.org
Requestors: atrickett [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.1.4
Fixed in: (no value)



Subject: Duplicate my in &method method
The method &method contains the following code: sub method { my $self=shift; my $method = shift; my $method = uc($method); $self->{method} = $method; } Naturally this generates warnings as method is "my"d twice. Not only is this an error, but it's a lot more complex than it needs to be. sub method { my $self=shift; my $method = shift; $self->{method} = uc($method); } Would be simpler, and no doubt it can be made simpler still, though that may obfuscate the code.
[ATRICKETT - Fri Jun 13 08:24:11 2003]: Show quoted text
> The method &method contains the following code: > > sub method > { > my $self=shift; > my $method = shift; > my $method = uc($method); > $self->{method} = $method; > } > > Naturally this generates warnings as method is "my"d twice. Not only > is this an error, but it's a lot more complex than it needs to be.
This code has been updated and will be placed online in the next release sometime this evening.