in reply to Re: Question regarding options like -i -n -p
in thread Question regarding options like -i -n -p

I don't remember about (and cannot test (and don't want to bother looking up)) unlink under *nix, but under Windoze it doesn't do wildcards. But this sure works (for Windose):

>perl -wMstrict -le "unlink glob '*.bak'; "

Replies are listed 'Best First'.
Re^3: Question regarding options like -i -n -p
by Laurent_R (Canon) on Jun 01, 2013 at 21:24 UTC

    Yes, you are right, my mistake. The unlink function does not take wildwards, also not under *nix. So the use of the additional glob function would be necessary to get it to work.