Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Need help

by McA (Priest)
on Oct 15, 2012 at 09:41 UTC ( #999045=note: print w/replies, xml ) Need Help??


in reply to Need help

foreach my $file (glob "/tmp/somedir/file*.xml") { unlink $file or die "ERROR: Couldn't delete file '$file': $!"; }

Replies are listed 'Best First'.
Re^2: Need help
by qwerty80 (Initiate) on Oct 15, 2012 at 10:03 UTC
    It is not deleting files.

      Why not?

      Do you have sufficient permissions to delete the files? In other words, are you able to delete them manually w/o having to authenticate?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999045]
help
Chatterbox?
[choroba]: ^ my daily bread
[Eily]: remember kids, the "first" step™ to avoid this """kind""" of issues is to not write bad code in the first place™

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2017-11-24 14:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (349 votes). Check out past polls.

    Notices?