On Tue, 12 Feb 2002 22:54:36 +0100 (MET), Terje Bremnes
<[EMAIL PROTECTED]> wrote:
> Any ideas here? Do I need to split the $word into an array (vector) in order
> to separate URL-links?

 That's the idea, though the backtick operator can be used in list
 context, like this:

#!/usr/bin/perl -Tw
use strict;
@ENV{qw(PATH BASH_ENV)} = ('',''); 
my $value = $ARGV[0];

   $value =~ m/^(\w+)/; # untaint
   $value = $1;

 chomp(my @results = `/bin/grep -inlsh $value perl/*`);
 
 print "<p>The string '$value' was found in these files:</p><ul>\n";
 foreach (@results){
         print qq'<li><a href="$_">$_</a></li>\n';
 }
 print "</ul>";

__END__



-- 
briac
 << dynamic .sig on strike, we apologize for the inconvenience >>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to