Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: processing PSQL with system command

by Fletch (Bishop)
on Mar 30, 2022 at 14:52 UTC ( [id://11142547]=note: print w/replies, xml ) Need Help??


in reply to Re^2: processing PSQL with system command
in thread processing PSQL with system command

Maybe slightly long in the tooth, but Yes, even you can use CPAN

Edit: That being said, if you're dead set on taking the hard route you'd be better served writing the SQL into a file and then telling psql to run that SQL script instead of trying using -c and outguessing how n layers of arbitrary quoting are going to be pulled (or not pulled) apart by however many levels of interpreting.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-19 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found