in reply to Using with a variable

I'm fairly sure that
<"$Pattern">
will do what you want (I'd check, but am at work. Sorry.)

The Autonomic Pilot

Replies are listed 'Best First'.
RE: Re: Using with a variable
by chromatic (Archbishop) on Apr 27, 2000 at 21:46 UTC
    Unfortunately, that didn't do it for me. I would guess that the <> operator has a higher precedence than the forced interpolation of the double quotes. On the plus side, specifying glob as rmgiroux points out works very well.

    (secret: put the print statement before the unlink and it will display how many files it unlinked.)