Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: adding database values to csv file

by Tux (Monsignor)
on Sep 27, 2011 at 17:38 UTC ( #928124=note: print w/ replies, xml ) Need Help??


in reply to Re^2: adding database values to csv file
in thread adding database values to csv file

while ($sth->fetch) { $rec{fobar} =~ s{old}{new}; # change in a single co +lumn s/(?:\b|[0-9])USD\b/EUR/g for values %rec; # change all columns $csv->print (*STDOUT, [ @rec{@fld} ]); }

Enjoy, Have FUN! H.Merijn


Comment on Re^3: adding database values to csv file
Download Code
Re^4: adding database values to csv file
by Anonymous Monk on Sep 28, 2011 at 12:10 UTC
    Many thanks!

    VE

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-09-16 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (4 votes), past polls