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

Re: Is there a cleaner way to write this code below, which includes derferencing references, that themselves have to be dereferenced?

by Fletch (Bishop)
on May 05, 2022 at 18:41 UTC ( [id://11143601]=note: print w/replies, xml ) Need Help??


in reply to Is there a cleaner way to write this code below, which includes derferencing references, that themselves have to be dereferenced?

Couple of tangential notes:

  • Be very careful where whatever input you're using is coming from that you're building your SQL select statement up otherwise you're asking for an injection attack.
  • Also if you used join to build your list of column names (join(q{,},@ticketsFields)) you don't have to go back and clean up the extraneous trailing comma (and that's still not going to insulate from injection problems if someone can get "garbage" into the list).

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re: Is there a cleaner way to write this code below, which includes derferencing references, that themselves have to be dereferenced?
  • Select or Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-24 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found