Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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

by Anonymous Monk
on Nov 16, 2001 at 23:03 UTC ( #125891=note: print w/replies, xml ) Need Help??

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....)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://125891]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2018-01-20 11:54 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (226 votes). Check out past polls.