From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 10 March 2006 14:11 To: [email protected] Subject: Anyone ever "burp" a file output?
> Dear Wizards, Gurus, Monks, and all-around know-it-alls, Well, that lets me out, but but I will stick my £0.02 in anyway. > > I've got a program that updates, and prints out to a new file, an HTML file > (about 3,500 lines) line-by-line > after slurping it into an array. I've just come across File::Slurp, which has > a sub to "burp" (i.e.: the > opposite direction of slurp) an array out to a file in one operation. The > question is, will I get enough of a > performance boost from the burp to make the modification to the script > worthwhile. > > Has anyone ever used this sub (it's called write_file()) and gotten a > noticeable improvement? Or am I finding > make-work for myself? Quite probably. I have used read_file/write_file, but mainly for the reason that it is one line of code instead of 3 or 4. I seriously doubt that you would notice any performance difference unless you are doing a lot of slurping (that's lots or reads and writes rather than big files), but the only way to tell for certain is to measure it yourself. However, the old adage "If it ain't broke, don't fix it" springs to mind. HTH -- Brian Raven ================================= Atos Euronext Market Solutions Disclaimer ================================= The information contained in this e-mail is confidential and solely for the intended addressee(s). Unauthorised reproduction, disclosure, modification, and/or distribution of this email may be unlawful. If you have received this email in error, please notify the sender immediately and delete it from your system. The views expressed in this message do not necessarily reflect those of Atos Euronext Market Solutions. L'information contenue dans cet e-mail est confidentielle et uniquement destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail vous parvient par erreur, nous vous prions de bien vouloir prevenir l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre systeme. Le contenu de ce message electronique ne represente pas necessairement la position ou le point de vue d'Atos Euronext Market Solutions. _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
