in reply to greping problem

mmm, anchoring patterns.
my $file = "eni.cxx"; if ($file =~ /\beni\.cxx\b/) { # do whatever }