Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: reading a JSON object

by choroba (Cardinal)
on May 15, 2022 at 22:17 UTC ( [id://11143904]=note: print w/replies, xml ) Need Help??


in reply to Re^2: reading a JSON object
in thread reading a JSON object

The error message indicates you're using the string timestamp in subtraction.

$ perl -wE 'say "timestamp" - 2' Argument "timestamp" isn't numeric in subtraction (-) at -e line 1. -2

I don't see how the string can be meaningfully converted to a number. Please, show the code that demonstrates the problem. Are you using the string directly instead of using it as a hash key?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-03-28 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found