unlink glob "$dir\\$ip_address.*";
would appear to be the way to go - see glob (which apparently, uses File::Glob - as suggested by kyle) & unlink.
Update:
Many thanx to FunkyMonk - for both pointing out the broken link and suggesting a fix ... link to I/O operators mended
In reply to Re: unlink with regex?
by Bloodnok
in thread unlink with regex?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |