skip to Main Content

Perl, JSON, float, quotes – CPanel

We have a Perl application which creates JSONs from DB queries. Unfortunately, it handles floats wrong, as it puts double quotes around floats. E.g.: use DBI; use JSON::MaybeXS; my $dbs="dbi:ODBC:myconnection,myuser,mypwd,"; my @ARR=split/,/ ,$dbs; $dbh = DBI->connect(@ARR, { PrintError=>0, RaiseError=>1, LongReadLen=>60000})…

VIEW QUESTION

unwrapping an Optional value

I am trying to login with macbook using code but I keep on getting this error: Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value // API to log an user in func login(userType: String, completionHandler: @escaping…

VIEW QUESTION
Back To Top
Search