Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: appending data to a file

by bipinbalan (Initiate)
on Feb 14, 2008 at 07:50 UTC ( #667891=note: print w/replies, xml ) Need Help??


in reply to Re: appending data to a file
in thread appending data to a file

Hi,
  I think this code will work. Check it..
open (writefile,">>$target_full_path") || die "Can't open $target_full +_path"; while($fetchdata=$sth4->fetchrow_array()) { print $fetchdata; print writefile $fetchdata; $rowcount++; #here it is counting } close writefile; print $rowcount;
Cheers !
  Bipin Balan

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://667891]
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: (2)
As of 2020-02-22 07:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (98 votes). Check out past polls.

    Notices?