i have an array which contain (head , b , v , . , b, v, end).
i try to find and get the ".", and do sth after that (example: print out ).
for unknown reason i can't get the "."
so i did a simple code to count occurence of char inside the array. here's the code:
$stylefile="log2.style";
open ("styles", $stylefile) or die ("can't open file");
while (<styles>)
{
$temp = $_;
chomp($temp);
push @style,$temp;
}
print @style;
# here is the array "headbv.bvend"
@bar = grep(/v/i, @style);
print @bar;
# it prints out vv
@fullstop = grep(/./i, @style);
# it prints out the entire array values.
any clue how to get occurences of "." ?