ABSTRACT: Basics tasks on DHTMLX Perl module
use strict;
use warnings 'all';
use DBI;
use JSON;
use HTML::Entities;
use POSIX qw(locale_h strtod setlocale LC_MONETARY LC_CTYPE);
# config
# prints
{
"response":"foo is undefined",
"status":"error"
}
Prints a JSON string with errors details and exit the application;
=cut
sub error
{
my($self, $strErro
%resposta = (
status => "error",
response => $strErro,
);
my $json = \%resposta;
print to_json($json, { utf8 => 1 });
exit;
}
=head2 Post
my $value_from_post =