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

Using Apache mod rewrite to modify a query string

I know it is possible to use mod rewrite in my htaccess Take: http://example.com/directory/perlscript.pl?base64encodedquery=jhfkjdshfsdf78fs8y7sd8 Make a shorter URL: http://example.com/? whatever just want to make it prettier Incoming: I am using use CGI; thus $qry->param('base64encodedquery')); Then I use use MIME::Base64 to…

VIEW QUESTION

Faulty cron job: safe to delete? – CPanel

One of the automatically generated cron jobs, namely: 2 0 * * * /usr/local/bin/perl /usr/local/cpanel/3rdparty/quickinstall/scripts/checkupdates.pl outputs this: Bareword found where operator expected at /usr/local/cpanel/Cpanel/JS/Variations.pm line 20, near "$filename =~ s{/js2" (Might be a runaway multi-line // string starting on line…

VIEW QUESTION
Back To Top
Search