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

Re: Unlink Permission Denied

by tachyon (Chancellor)
on May 03, 2002 at 04:09 UTC ( #163703=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $file = 'c:\test.txt';
    open F, ">$file" or die "Can't open $file $!\n";
    # uncomment this to gain permission to unlink $file...
    # close F;
    unlink $file or die "Can't unlink $file $!\n";
    
  2. or download this
    $file = "c:\\test.txt";
    `dir c: > $file`;
    unlink $file or die "Can't unlink $file $!\n";
    
  3. or download this
    perl somscript.pl > somefile.txt; del somefile.txt
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://163703]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (17)
As of 2018-07-23 14:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (468 votes). Check out past polls.

    Notices?