Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by AnomalousMonk (Chancellor)
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'; "

Replies are listed 'Best First'.
Re^3: Question regarding options like -i -n -p
by Laurent_R (Abbot) 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?
[LanX]: 1899?
[chacham]: Just paint the white house black again.
dbander snorts
LanX Gesundheit! :)
talexb wonders about dividing developers in those born before the Unix timestamp of zero .. and after. Spoiler: I'm before.
chacham remebers I am a mad scientist
[stevieb]: talexb I'm after by a few years, but we can still be friends because you live in my hometown ;)
[LanX]: White House

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2017-08-18 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (302 votes). Check out past polls.

    Notices?