Re: print statement creates key in hash with reference to empty array??
- From: Uri Guttman <uri@xxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 17:05:21 -0500
>>>>> "r" == rhorizon74 <rhorizon74@xxxxxxxxx> writes:
r> Id rather have my program fail, most scripting languages would print an
r> error (they would not seg-fault). That would be better than giving
r> incorrect results.
incorrect results? by whose definition are the results incorrect? you
didn't read the docs to understand autoviv and assumed incorrect
behavior. i lay that on you and not perl.
r> Moral of the story is i need to do an exists before i do anything with
r> any hash related structure in perl.
the real moral is you haven't learned yet how to work with perl data
structures. needing to print low level entries is very unusual. that
leads me to suspect the quality of your structure's design. i have done
many deep structures and never have come across this need. usually
something at a higher level can be done so you don't need to directly
access missing elements and thereby cause autoviv to happen.
until you learn more about perl and its data structures you will be
doomed to this poor style of design and coding.
and read my article already. it was written specifically for you.
uri
--
Uri Guttman ------ uri@xxxxxxxxxxxxxxx -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
.
- References:
- print statement creates key in hash with reference to empty array??
- From: rhorizon74
- Re: print statement creates key in hash with reference to empty array??
- From: it_says_BALLS_on_your forehead
- Re: print statement creates key in hash with reference to empty array??
- From: rhorizon74
- Re: print statement creates key in hash with reference to empty array??
- From: xhoster
- Re: print statement creates key in hash with reference to empty array??
- From: rhorizon74
- print statement creates key in hash with reference to empty array??
- Prev by Date: Re: print statement creates key in hash with reference to empty array??
- Next by Date: Re: split the sequences
- Previous by thread: Re: print statement creates key in hash with reference to empty array??
- Next by thread: Re: print statement creates key in hash with reference to empty array??
- Index(es):
Relevant Pages
|