Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Think about Loose Coupling
 
PerlMonks  

Re^2: Question regarding options like -i -n -p

by AnomalousMonk (Monsignor)
on May 29, 2013 at 21:16 UTC ( #1035921=note: print w/ replies, xml ) Need Help??


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'; "


Comment on Re^2: Question regarding options like -i -n -p
Download Code
Re^3: Question regarding options like -i -n -p
by Laurent_R (Priest) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1035921]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2014-04-19 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (480 votes), past polls