in reply to Re: Quickest method for matching
in thread Quickest method for matching

Hey Mike,
Thanks for your reply. Not every match will be the same, but there can be 2 to 2000 (or even more) matches.
Also, a match will not occur over 2 lines (that was a good question I had not thought of).

I will have to test your script tonight. Do you know off hand how to time a script?

Thanks again,
Dr.J

Replies are listed 'Best First'.
Re: Re: Re: Quickest method for matching
by sauoq (Abbot) on Aug 06, 2002 at 22:18 UTC
    If you are on a *nix machine, check the manual page for the time command. It's cleaner and easier for timing a script than changing the script itself.
    -sauoq
    "My two cents aren't worth a dime.";
    
Re: Re: Re: Quickest method for matching
by tachyon (Chancellor) on Aug 06, 2002 at 21:53 UTC

    If it is a slow script:

    my $begin = time(); # do stuff print "I took ", time() - $begin, " seconds\n";

    Otherwise see Benchmark made easy for timing faster operations

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print