in reply to Re^3: searching several files for a string at one time
in thread searching several files for a string at one time

See File::Glob for bsd_glob. It is much like glob but has sane whitespace handling.

You don't have to ask the user for the search term. See perlvar on @ARGV to see how you can retrieve the command line arguments that were given to your script.