http://www.perlmonks.org?node_id=1079023


in reply to Why is my result empty?

You are coping with scoping. Inside your loop, try:
$final_res = $split_final[7];