On 10/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote:
snip
> Chas shows one possibility.  However, that approach generally involves
> slurping the entire file into the perl script, applying the regex to
> the whole thing, and then spitting the result out again.  From what I
> understand, this generally isn't very good form.
snip

The reason slurping files is frowned upon is that you do not know how
large the file may be.  You may be testing with small files, but
production may be using multi-gig files.  Source files are almost
always less than a few megabytes (and if they aren't you have a bigger
problem than a slurp).

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to