Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by pdcawley (485) on 2002.06.18 9:24 (#9661) Homepage Journal
    Then it deserves full marks. It's not like it's a terrible algorithm (it might well be faster than the hash based solution...).

    Now extend the problem. Ask for multiple names to match. Introduce Benchmark.pm.

    Apologies if this is teaching you to suck eggs.
    • Then it deserves full marks.

      It got full marks, for doing the job and being clever than the solution I anticipated.

      Now extend the problem. Ask for multiple names to match.

      I did something similar: asked for it to report an error for names that weren't in the file. She quickly realised a hash-based solution was more appropriate for that.