hash key evaluation creates an entry !

From: Edo (eddGallary2_at_hotmail.com)
Date: 11/29/03


Date: Sun, 30 Nov 2003 06:24:56 +1100

Hello

this line
40: if ($#{$set{'1'}} == $enf) {
creates an entry

p Dumper %set
$VAR1 = '1';
$VAR2 = [];

man, I am lost. why is that, I want to just find out if there is a key
== 1 in the hash set.why it just creates it like that? how then can I
check the condition?
e.g.

main::(path:40): if ($#{$set{'1'}} == $enf) {
   DB<5> p %set

   DB<6> n
main::(path:40): if ($#{$set{'1'}} == $enf) {
   DB<6> p %set

   DB<7> n
main::(path:44): load (...)
   DB<7> p %set
1ARRAY(0x84d4940)
   DB<8>

40: if ($#{$set{'1'}} == $enf) {
41: exit;
42: }
43:
44: load (...)

thanks



Relevant Pages

  • Re: hash key evaluation creates an entry !
    ... >>creates an entry ... >>p Dumper %set ... >>man, I am lost. ... > To check for the existence of a hash key, ...
    (comp.lang.perl.misc)
  • Re: Concatenation order in STEPLIB
    ... When you load a module, the system must first find its directory entry. ... the first data set in the concatenation in which that module lives). ... The LNKLST, when LLA is managing the entire LNKLST, is an exception, as LLA ...
    (bit.listserv.ibm-main)
  • accident on I40 in Tn.
    ... then you realize his rear doors are completely off the trailer ... and laying in the median. ... pipe, a strap broke, lost the load and didn't know it. ...
    (misc.transport.trucking)
  • Strange Problem: System Code S106
    ... we faced a strange problem with a system code S106, ... Although the LOAD was not successful, ... and an entry point address X'80000000'. ... by lookup of the CDE, and now the problem is: ...
    (bit.listserv.ibm-main)
  • Re: Strange Problem: System Code S106
    ... we faced a strange problem with a system code S106, as response to a LOAD macro call. ... Although the LOAD was not successful, the LOAD in error added an entry into the CDE with the requested module's name, and an entry point address X'80000000'. ...
    (bit.listserv.ibm-main)