in reply to Searching input file

Hi psychoto!
The Monks are big on -w and use strict;
and rightfully so. So if your not doing that
you might want to start.

In your script you probably want to change the line ...
if ($search == $author) {
... to ...
if ($search eq $author) {

because $search and $author do not contain "numbers".
There are other stylistic things I am sure other monks
will comment on.