in reply to Scalar in structure field name

Is there a solution to this?

Yes, use Basic debugging checklist item 4 ( Dumper ) to ddumperBasic debugging checklist up \@stations and $params, this is the first step to figuring this out

  • Comment on Re: Scalar in structure field name (ddumper)

Replies are listed 'Best First'.
Re^2: Scalar in structure field name (ddumper)
by dpath2o (Acolyte) on Sep 30, 2013 at 03:23 UTC

    Jeez! I'm a silly bugger! Sorry for the waste of time here as the problem was completely foolish ...
    here's what I was doing:

    my $table_type = $params->{local}->{$station}->{realtime}->{table_type +};

    and here's what I should be doing:

    my $table_type = $params->{local}->{realtime}->{$station}->{table_type};

    I'll go sit in the corner now with my cap of shame on ...

      To save you some finger strain in the future: all of those ->s beyond the first one are not required.

      my $table_type = $params->{local}{realtime}{$station}{table_type}; Will do the same thing.