Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Using read/write to update a fileby toolic (Bishop) |
on Oct 14, 2014 at 18:51 UTC ( [id://1103789]=note: print w/replies, xml ) | Need Help?? |
In your code, print prints to STDOUT, not your myfile.csv file. You could specify the DATA filehandle, but I think you'll just be appending lines, not replacing them. Consider Tie::File.
In Section
Seekers of Perl Wisdom
|
|