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.
In reply to Re^4: searching several files for a string at one time
by Corion
in thread searching several files for a string at one time
by daggy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |