[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: minimal test case; perl bug



Joey Hess wrote:
> joey@gumdrop:~>cat repro          
> $_=("\n" x 5).' '.("\n" x 97)."x\nA\n";
> m/^\s*A/m;
> joey@gumdrop:~>perl-5.005 -w repro
> joey@gumdrop:~>perl-5.6 -w repro  
> Use of uninitialized value in pattern match (m//) at repro line 3.

The alert may notice it's complaining about a nonexistant line three. My
fault, here is what I really see:

joey@gumdrop:~>cat repro
$_=("\n" x 5).' '.("\n" x 97)."x\nA\n";
m/^\s*A/m;
joey@gumdrop:~>perl-5.005 -w repro
joey@gumdrop:~>perl-5.6 -w repro  
Use of uninitialized value in pattern match (m//) at repro line 2.

-- 
see shy jo



Reply to: