Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^3: Extract Column of CSV - pretend its a database.

by space_monk (Chaplain)
on Jun 26, 2013 at 18:11 UTC ( #1040825=note: print w/replies, xml ) Need Help??

in reply to Re^2: Extract Column of CSV - pretend its a database.
in thread Extract a column of csv

Well thats one idea. I presume though you'd need the psql client installed on your PC. Your answer is ingenious but not Perl :-)

If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)
  • Comment on Re^3: Extract Column of CSV - pretend its a database.

Replies are listed 'Best First'.
Re^4: Extract Column of CSV - pretend its a database.
by erix (Vicar) on Jun 26, 2013 at 18:18 UTC

    You would need much more than psql (which in fact you do not really need); you would need a running postgresql server to talk to. The talking would be done via DBI.

    But again; not really recommended for the OP (or I would have made a DBI example), just a demo for fun :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040825]
[MidLifeXis]: I have a user who has a lot of say on how some of our processes work that abhors significant blanks. Perhaps that is a part of it. A not-so-obvious "this space intentionally left blank" indicator.
[MidLifeXis]: On the back end, however, that doesn't mean that i have to use that value to indicate "undefined", no matter how much he thinks I should.
[stonecolddevin]: hey MidLifeXis, all
[MidLifeXis]: o/
[GotToBTru]: greets

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2017-01-20 19:18 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (176 votes). Check out past polls.