http://www.perlmonks.org?node_id=125891


in reply to Re: Re: no warnings 'uninitialized' (was:Time to seconds)
in thread Time to seconds

All these has their more or less intuitive explanations except for the $i and $k examples, and possibly also the $1 example. I believe you did this test on ActivePerl which is unfortunate since ActivePerl is broken. Try that on coreperl and you'll see that the $i and $k examples too will emit warnings--just as they should.
  • Comment on Re: Re: Re: no warnings 'uninitialized' (was:Time to seconds)

Replies are listed 'Best First'.
Re4: no warnings 'uninitialized' (was:Time to seconds)
by blakem (Monsignor) on Nov 17, 2001 at 00:53 UTC
    Ah, so here is another reason to turn off that warning... different perls complain about different things. The original answers were from a unix 5.6.1 perl, but testing it against 5.005_03 on the same machine shows that $i and $k trip warnings as you noted. (of course turning off warnings prior to 5.6.0 is a bit of a pain....)

    -Blake