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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
If it passes the tests... (Score:2, Interesting)
Now extend the problem. Ask for multiple names to match. Introduce Benchmark.pm.
Apologies if this is teaching you to suck eggs.
Reply to This
Re:If it passes the tests... (Score:3)
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.