in reply to Dynamic Dereferencing

you are missing a dollar, line 290

otherwise, $VAR1 is what you call a dereference, right?

Replies are listed 'Best First'.
Re^2: Dynamic Dereferencing
by Flip76 (Novice) on Dec 07, 2018 at 12:43 UTC
    Oh sorry, line 290 is wrong as I used the output from my script and not from the snipplet here - actually this line is meant:

    $deref = $item->{$element};

      here then:

      # But this works deref = $item->{meta}->{created};
        No, it's this line
        # This works for all elements except of meta}->{created $deref = $item->{$element};