Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://125891]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-09-20 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (159 votes), past polls