I am trying to find an array for strings containing $ inbucket [0]. Some of my $ inbucket [0] values ββinclude special characters. This script does exactly what I want until I hit a special character.
I want the query to be case insensitive, match any part of the $ var string, and process special characters literally, as if they weren't special. Any ideas?
Thanks!
sub loopthru() { warn "Loopthru begun on $inbucket[0]\n"; foreach $c (@chat) { $var = $c->msg; $lookfor2 = $inbucket[0]; if ( $var =~ /$lookfor2/i ) { ($to,$from) = split('-',$var); $from =~ s/\.$//; print MYFILE "$to\t$from\n"; &fillbucket($to); &fillbucket($from); } } }
source share