hash key evaluation creates an entry !
From: Edo (eddGallary2_at_hotmail.com)
Date: 11/29/03
- Next message: Eric J. Roode: "Re: DBI error handling"
- Previous message: John W. Krahn: "Re: Array Indexing problem"
- Next in thread: Eric J. Roode: "Re: hash key evaluation creates an entry !"
- Reply: Eric J. Roode: "Re: hash key evaluation creates an entry !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Eric J. Roode: "Re: DBI error handling"
- Previous message: John W. Krahn: "Re: Array Indexing problem"
- Next in thread: Eric J. Roode: "Re: hash key evaluation creates an entry !"
- Reply: Eric J. Roode: "Re: hash key evaluation creates an entry !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|