in reply to Re^2: Use of uninitialized value $_ in pattern match (m//)?
in thread Use of uninitialized value $_ in pattern match (m//)?

What is the value in $match?

What do you expect the value in $match to be?

As hippo already mentioned, you seem to be highly confused about how to read entries in a directory. See glob, or opendir and readdir.