Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Problem with doubles results

by Corion (Patriarch)
on May 17, 2024 at 17:51 UTC ( [id://11159511]=note: print w/replies, xml ) Need Help??


in reply to Problem with doubles results

Please post the actual code together with its actual output. The code you posted cannot produce the output you show:

SELECT name country gender FROM tbl_U WHERE location = ?

This is not valid SQL.

{ "info": "\t\t\t\t\t\t \n<p>John UK Male</p> \n<p>Kieth UK Male</p>" ...

This output cannot be produced by

$json_msg .= <<HTML; <p>$name $country $gender</p> HTML

... as this line does not contain any tabs.

You may want to learn about scoping and where to put your variable declarations. Or at least think about why you are appending to $json_msg, instead of simply setting it to the desired value.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-07-20 00:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.