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.
In reply to Re^3: Use of uninitialized value $_ in pattern match (m//)?
by Corion
in thread Use of uninitialized value $_ in pattern match (m//)?
by fasoli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |