Re: print statement creates key in hash with reference to empty array??



Hi,

Id rather have my program fail, most scripting languages would print an
error (they would not seg-fault). That would be better than giving
incorrect results.

Moral of the story is i need to do an exists before i do anything with
any hash related structure in perl.

Thank you

.



Relevant Pages

  • Re: Daryl, Dave, Barb and the Georges source of Confusion
    ... > informal treatment. ... constructed in such a way that it misrepresents the original situation by ... "incorrect input", since we don't see "incorrect answer" when the answer ... So not only does his program fail to do what he wanted ...
    (sci.math)
  • Re: Daryl, Dave, Barb and the Georges source of Confusion
    ... > informal treatment. ... constructed in such a way that it misrepresents the original situation by ... "incorrect input", since we don't see "incorrect answer" when the answer ... So not only does his program fail to do what he wanted ...
    (sci.logic)
  • Re: Daryl, Dave, Barb and the Georges source of Confusion
    ... > informal treatment. ... constructed in such a way that it misrepresents the original situation by ... "incorrect input", since we don't see "incorrect answer" when the answer ... So not only does his program fail to do what he wanted ...
    (comp.theory)