in reply to Re^7: Searching Huge files
in thread Searching Huge files

Indeed. Although the real answer is: "Did it work?". ;)


Perl is environmentally friendly - it saves trees

Replies are listed 'Best First'.
Re^9: Searching Huge files
by biomonk (Acolyte) on Jul 13, 2008 at 13:50 UTC

    ya it works well,can i know wat's the right way or answer to do it, please? thanks in advance.

      The correct answer depends on you. Things to consider:

      • Does it work correctly?
      • Do you understand it?
      • Would anyone else understand it?
      • Will you understand it in a month's time?
      • Does it strike a good balance between terseness and verbosity?
      • Could you make changes to it without it being likely to break in unforeseen ways?
      • and a very distant last: Is it fast enough?

      If you can answer yes to all those questions you can consider the code to be correct.


      Perl is environmentally friendly - it saves trees