Hello everyone,
I'm grepping a file for a short string (dns3):
my $command = "cat $file | grep -i dns3";
my $exec = `$command`;
This will give me many lines for a result. If I did a print "$exec";
all of the data would be printed at once. How Do I get the results
from the grep and place them into an array? I want to do it result
by result. So the first result could be $array[0], the second could
be $array[1], and so on...
Know what I mean? If not, don't pay any attention. Thanks everyone!
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]