in reply to XML header parsing error
$results{"$num"/"$value"};
Maybe you want something like this:
if( $results =~ /$num."\/".$value/m ) {
Also use strict and warnings. You have some typos.