Ovid:

It was the "Running with Scissors" topic that inspired me to add "Sitting calmly with scissors"... I was just being a smartass about my cautious approach to "things unknown" when it comes to Perl (can I say "smartass" here? If not, imagine I typed "wise-crackin' guy" instead of "smartass").

At the advice of yourself and gryng, I'll skip the study() for now and just match the string as is... your reasoning sounds pretty logical. Perhaps in the future I'll add it and try the benchmark module ZZamboni suggested, and see if it does me any good.

As far as the index file goes, I've used that in other scenarios, but it won't work here because these files aren't static... they're ever-changing. I think the overhead of constantly rebuilding the word indexes would outweigh the speedy search advantage. Thanks for tryin to help me out though, man... I appreciate it.

And thanks to Ovid, gryng, and ZZamboni, you guys are the tops!!

Alan "Hot Pastrami" Bellows
-Sitting calmly with scissors-

P.S. Hey Ovid, as a curiosity, the company I work for is called Ovid... I'm a Perl programmer there. Crazy stuff, eh?

In reply to Re: File slurping efficiency by Hot Pastrami
in thread File slurping efficiency by Hot Pastrami

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.