HTHmy @grep_result = `grep -r $string .`; foreach my $result (@grep_result) { print; }
update: Ack! yes of course; I don't write CGIs much, but I should still know better. Use -T and untaint $string, by all means.
In reply to Re: CGI Script Calling Grep
by scain
in thread CGI Script Calling Grep
by muleherd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |