>>>>> "B'R" == Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> writes:

  B'R> Jeff Clites wrote:
  >> +                local $/;
  >> +                return if <FROM> eq <TO>;

  B'R> I hope none of these files are too big.  Otherwise, that'll be a
  B'R> painfully huge slurp...

as cpan modules are allowed, try using file::slurp as it is much faster
than local $/.

and as jeff said, even slurping a megabyte is nothing today. the slurp
paranoia from the days of small ram are behind us. now i agree you
should be aware of slurping but source and config files are rarely ever
going to be a problem. it is logs and genetic data files that you have
to worry about :)

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org

Reply via email to