in reply to Imaginary Key

I think that if you were to change this line:
if ((!$user_ranges{$counter}->[1]) && ($counter >= 1)){ # if range is +one day long
to this:
if ( ($counter >= 1) && (!$user_ranges{$counter}->[1])) { # if range i +s one day long
the problem seems to go away (i believe it is autovivification that is causing the error).

-enlil

Replies are listed 'Best First'.
Re: Re: Imaginary Key
by blackjudas (Pilgrim) on Mar 25, 2003 at 18:42 UTC
    Thank you Enlil for actually trying to compile the code :). I still cannot see why perl would autovivificate that hash in a conditional. I've got to look at it more closely.
    BlackJudas