Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am having problem printing the output of the hash $info{EmpNum} , I am trying the following :my $x=1; while($x <= $EMPnum) { my $t1 = $left1->Label(-text=>"Guy #$x", -background=>'gray')->pack(); my $num = $left2->Entry(-width=>12, -background =>'white', -borderwidth=>2,-relief=>'sunken', -textvariable => \$info{EmpNum}[$x])->pack(); $x++; }
but it gives me nothing . thanksforeach (@{$info{EmpNum}}) { print "\t$info{$_}>[0] $info{$_}->[1]\t$info{$_}->[2]\t$info +{$_}->[3]\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash table issue
by Zaxo (Archbishop) on May 08, 2004 at 21:28 UTC | |
by Anonymous Monk on May 08, 2004 at 21:42 UTC | |
by Zaxo (Archbishop) on May 08, 2004 at 21:55 UTC | |
|
Re: Hash table issue
by krusty (Hermit) on May 08, 2004 at 21:36 UTC | |
|
Re: Hash table issue
by Errto (Vicar) on May 09, 2004 at 00:32 UTC |