in reply to Re^3: Search function for guestbook history?
in thread Search function for guestbook history?

Ok, BrowserUK...I've looked...done some reading... and the part I still don't follow is the simple "slurp" subroutine. Could you/others translate it to English a bit more, please? The rest of the code I believe I can understand, at least for now.
  • Comment on Re^4: Search function for guestbook history?

Replies are listed 'Best First'.
Re^5: Search function for guestbook history?
by BrowserUk (Patriarch) on Jan 10, 2006 at 22:34 UTC

    It is basically a reconstruction (from memory, and incorrectly) of the slurp idiom discribed and discussed in Cheap idioms. I suggest you read that thread as it goes into great detail and discusses all the pros and cons.

    I would also recommend that if you are using the one I (mis)typed in my posts (as a substitute for the one I call from my personal Utils library), that you either replace it with the final concensus form from that thread, or just install File::Slurp and have done with it.

    Update: Indeed, I strongly suggest that you get File::Slurp and substitute it's slurp() routine. It is far faster than the slurp routine in the Cheap Idioms thread.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.