[Omaha.pm] bug hunt

Jay Hannah jay at jays.net
Sun Jul 1 11:04:11 PDT 2007


Code:

my $w1=$original_when;
my $w1=~s/[\s:-]//;



Jay asserts:

That can't be right. The second line uses "my" again, which wipes out  
the assignment from the first line. So $w1 will always be undef, and  
those two lines of code could be reduced to a single line: "my $w1;".



Doh!   :)

j





More information about the Omaha-pm mailing list