Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: adding database values to csv file

by Tux (Abbot)
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

Replies are listed 'Best First'.
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 cooling their heels in the Monastery: (3)
As of 2016-09-29 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (544 votes). Check out past polls.