hi friends..............

i m new to perl n i hav a doubt.

i hav a wordpad file which contains two fields.i hav to do look up in the file such tht whenever the first field is gettin as the output of some program i hav to do a look up and print the value in the second field as out put.ie, the final output is the value in the second field....plz help..
contents in the wordpad file
first column
ba
baa
bai
bam
baw
be
bee
bey
bi
bo
boh
bu
buu

second column
_
_m
ss_
_w
_u
s_
_ o
t_
_n
s_m
t_m
_p
_q

i hav another file which contains the elements in the first column.whenever a word in first column appears the secod column has to be printed. plz help. urgent.

what to do?
plz help

Nevermind Wrong topic.

what have you tried so far?

did you tried using REGULAR EXPRESSIONS

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.