Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • This works fine on sample data, but with the actual data, I get Can't use string ("d6udq15687339893700") as a HASH ref while "strict refs" in use. I think I must not be understanding the dereference operator (->) because I see similar examples that look like print "$json->{v2rbz1568}{username}\n"; How can I determine what is causing my error? Commented Dec 17, 2019 at 5:17
  • Then edit new code in your original POST Commented Dec 17, 2019 at 13:21
  • I understand the issue a little better now. I will post it as a new question. Your answer is good for this question, so I will leave it as is instead of making it overly complicated. Commented Dec 17, 2019 at 20:06
  • My new question is here: unix.stackexchange.com/q/557746/268886 Commented Dec 17, 2019 at 21:00
  • Thank you the "%$json" trick was super useful, it works on my side even if I don't understand the behavior clearly, why can't use directly the "%json". Commented Nov 17, 2022 at 7:08