in reply to Re: Dynamic Dereferencing
in thread Dynamic Dereferencing

Thanks a lot for the nice sample!

One more question:
# converting the elements to JSON pointer paths my @elements = map {s!\.!/!gr} (qw/ userName displayName meta.created +/);
qw does not support interpolation right? So I can't use a string there too :-(
Is there a way around to dynamically change the values there?
Background: The values are coming from a config-file. So if I add a new entry like "meta.user" in the config, it should work without touching the code...

Replies are listed 'Best First'.
Re^3: Dynamic Dereferencing
by Flip76 (Novice) on Dec 07, 2018 at 13:39 UTC
    Ups sorry, I got it:
    my @elements = map {s!\.!/!gr} (split(' ', $API{$action . '.elements'} +));
    Thanks a lot for your help!