in reply to More dereferencing

In get_suite_vars, you need to change
foreach $key (keys($job_vars)){
to
foreach $key (keys (%{$job_vars} ) ) {
Also I would change
print "$key = $$job_vars{$key}[0] & $$job_vars{$key}[1]\n";
to
print "$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 Dumper $job_vars;
oh yeah - using strict will help a lot too...

Replies are listed 'Best First'.
Re: Re: More dereferencing
by Scarborough (Hermit) on May 04, 2004 at 16:42 UTC
    Thank you for your help. Have never got to grips with Dumper looks like now would be a good time. Thanks for all your help!