in reply to More dereferencing
toforeach $key (keys($job_vars)){
Also I would changeforeach $key (keys (%{$job_vars} ) ) {
toprint "$key = $$job_vars{$key}[0] & $$job_vars{$key}[1]\n";
Plus, just to be sure that the data strcutures look ok, I would add a line like (use Data::Dumper at top of code)print "$key = $job_vars->{$key}[0] & $job_vars->{$key}[1]\n";
oh yeah - using strict will help a lot too...print Dumper $job_vars;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: More dereferencing
by Scarborough (Hermit) on May 04, 2004 at 16:42 UTC |