nadim khemir <[EMAIL PROTECTED]> writes:
> warning_like
> {
> something() ;
> } qr'Use of uninitialized value in substitution iterator' ;
>
>
> I get the warning on the terminal which is boring when one works with a
> module
> but worse when zealots (that would be Gabor) report it. Since I didn't
> remember that the warnings were normal, I had to dig a bit to find that out.
What precisely must "something()" be? I tried the following:
use strict;
use warnings;
use Test::More tests => 1;
use Test::Warn;
warning_like
{
eval '$_ = "ab"; s/./${{b=>1}}{$&}/g' ;
} qr'Use of uninitialized value in substitution iterator' ;
__END__
... but it gave me nothing but the usual "1..1\nok 1\n" on the terminal.
I even tried 5.6.2, 5.8.8, and 5.10.0. Nothing.
So. Where do I look?
Eirik
--
~# su doku
Unknown id: doku
~#