in reply to Looking through a file...

instead of
my @Names =~ grep("$Info", @Lines);
try
my @Names = grep(/$Info/, @Lines);
or even better
my @Names = grep(/^$Info$/, @Lines);
also adding
use warnings; or #!/usr/bin/perl -w (pre 5.6)
should have let you known that something was wrong.
let me know if this helps

-bn