Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, my web site is down and I can't figure out this problem:

I have an array with five file names which are:

I have a variable called $THREAD, if thread equal "1" during a foreach loop I'm trying to use pattern matching to find the file that begins with 1, not 11, not 12, but 1 which in this case is "1x0.htm". The file at somepoint might be named 1x2, 1x12, ect. But the key is held in the $THREAD variable.

My pattern matching is not working:

I've tried everything, I thought this should work:

$THREAD= "1"
if ($filedir =~ /$THREADx*.htm/) {

Thanks in advance for any help.

Edited by Chady -- retitled from 'Emergency Help'