in reply to ForEach Command struggle..

I'm having a lot of trouble following your code. Part of your problem might be because you seem to be using the wrong variables:
# You assign values to pluralized versions of variables: ($ips,$times,$locationold,$titles)=split('×',$lines); # Then you *use* singular versions of those variables: $line="$ip×$time×$place×$title";
Where is $ip set? Please run your script with use strict; in effect and with warnings (-w or use warnings;) enabled. You will probably catch most of your problems by doing that. Also, what are you trying to do with these:
${$location}{online} ${$loc}{online}
Are those two references written correctly? Hope this helps.