in reply to question to a complex structure of hash/array

Just taking a stab in the dark, I'm thinking that this:

push @{$plotx{$ii}}, $fnfeld[$xfeld[$i]]->{'fn'};

possibly should be this instead:

push @{$plotx{$ii}}, @{$fnfeld[$xfeld[$i]]->{'fn'}};

But the whole thing seems needlessly complicated. Agree with thanos that it would help if we could see more of your program, particularly the call to Gnuplot.

  • Comment on Re: question to a complex structure of hash/array

Replies are listed 'Best First'.
Re^2: question to a complex structure of hash/array
by buchi2 (Acolyte) on Aug 09, 2017 at 05:05 UTC
    Hello!
    push @{$plotx{$ii}}, @{$fnfeld[$xfeld[$i]]->{'fn'}};
    results:
    Can't use an undefined value as an ARRAY reference at testl.pl line 585

    Regards buchi

      Hello!

      I dont know, what was going wrong before, but the line

      push @{$plotx{$ii}}, @{$fnfeld[$xfeld[$i]]->{'fn'}};
      is working now. :)
      Thanx.

      Regards, buchi