in reply to
Using with a variable
As documented, you'll get good results if you use
unlink <${pattern}>;
[download]
But I agree, in modern Perls (as of 5.6), the easier way to go is:
unlink glob $pattern;
[download]
--
Randal L. Schwartz, Perl hacker
Comment on
Re: Using with a variable
Select
or
Download
Code
In Section
Seekers of Perl Wisdom