I
IJALAB
Hi All,
I am new to Perl.
My problem is:
I have a log file that has lot of data and every line is identified by
its first character and then processed accordingly.
so, for example, I have a line starting with 2, from which i am
printing some data and then proceeding.....in a certain i have some
data in one line (say 3), which also lists the 3
elements...(12,14,15)...
ANother line(s) continuosly prints several elements one by one of which
my need is to check if these elements (12,14,15) are available in any
of these lines and print relevant info.
I created an
$data (stored the number of elements) and accordingly created an
array(@data) and stored those elements in that array.
when the next line is encountered i tried to pick every element from
@data and compare with those line data, i am not getting the array
elements?
is there a simpler way to handle this situation?? where am i going
wrong?
need ur help.
thanks
bala
I am new to Perl.
My problem is:
I have a log file that has lot of data and every line is identified by
its first character and then processed accordingly.
so, for example, I have a line starting with 2, from which i am
printing some data and then proceeding.....in a certain i have some
data in one line (say 3), which also lists the 3
elements...(12,14,15)...
ANother line(s) continuosly prints several elements one by one of which
my need is to check if these elements (12,14,15) are available in any
of these lines and print relevant info.
I created an
$data (stored the number of elements) and accordingly created an
array(@data) and stored those elements in that array.
when the next line is encountered i tried to pick every element from
@data and compare with those line data, i am not getting the array
elements?
is there a simpler way to handle this situation?? where am i going
wrong?
need ur help.
thanks
bala