Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: question to a complex structure of hash/array

by Anonymous Monk
on Aug 08, 2017 at 14:38 UTC ( [id://1196992]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1196992]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-03-30 05:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found