http://qs1969.pair.com?node_id=597061


in reply to Re: search for a pattern in file without opening the file
in thread search for a pattern in file without opening the file

Shame on you tinita, -- for such bad advice...

He'd be much better of using Quantum::Schrodingers_Cat. The major plus side of using this module is that you can just choose the result you want. He may not even need to run the script, which has obvious efficiency advantages. :p

---
my name's not Keith, and I'm not reasonable.
  • Comment on Re^2: search for a pattern in file without opening the file

Replies are listed 'Best First'.
Re^3: search for a pattern in file without opening the file
by rinceWind (Monsignor) on Jan 29, 2007 at 13:04 UTC

    Hmmm, Quantum::Schrodingers_Cat sounds like a Damian module. This computer is alive or dead depending on the XOR of this entire file - a new variant to the halting problem.

    How about another application: "This file/email attachment contains a virus" without opening it.

    --

    Oh Lord, won’t you burn me a Knoppix CD ?
    My friends all rate Windows, I must disagree.
    Your powers of persuasion will set them all free,
    So oh Lord, won’t you burn me a Knoppix CD ?
    (Missquoting Janis Joplin)