On with the Q...
I have a text file I wish to search to find out how many times '¦needauth' appears in it. Warning: There is no space before the search phrase!
How? :/
you can use the grep command to get this. You'd need to read the file into an array, then grep it for "¦needauth", then get the count of the new array.
So assume you read your file into @file:
@parse = grep (/\¦needauth/,@file);
$num_times = $#parse + 1;
$#parse is the last element number of the array @parse. Since arrays begin with 0 you need to add 1 to get a "human" count.
Scott Geiger