deep_thought
28th January 2007, 14:35
hello everyone. i am new to perl programming.
so i wanted to ask you that after splitting up a string into an array of characters how do i check induvidually each character if it matches a set of characters...........
for eg
original string ------>FLLICEK
i want to check each character if it is either T,D,L or F and if it is increment counter by 1
F------> it is one of the characters T,D,L,F so increment counter to 1
L-------> it is one of the characters T,D,L,F so increment counter to 1
L-------->(2nd L) it is one of the characters T,D,L,F so increment counter to 1
but i am not getting the method to do it .
plz help me......
so i wanted to ask you that after splitting up a string into an array of characters how do i check induvidually each character if it matches a set of characters...........
for eg
original string ------>FLLICEK
i want to check each character if it is either T,D,L or F and if it is increment counter by 1
F------> it is one of the characters T,D,L,F so increment counter to 1
L-------> it is one of the characters T,D,L,F so increment counter to 1
L-------->(2nd L) it is one of the characters T,D,L,F so increment counter to 1
but i am not getting the method to do it .
plz help me......