Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 scrutinizing the Monastery: (11)
As of 2014-12-26 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls