This is my log
connect
called
menu
transfer
disconnect
connect
called
transfer
disconnect
i want to pick the word, when the word exactly next to ,
When the word like
connect
menu
transfer
disconnect means,
i should pick the word transfer,
if my flow like
connect
called
transfer
disconnect
then i dont want to pick the word transfer,
You coud try something like:
Updated to standard Perl distribution :
output: