Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: undefChapter 5
Function Reference
Next: Reference: unpack
 

unlink

unlink list

Deletes a list of files. (Under Unix, it will remove a link to a file, but the file may still exist if another link references it.) If list is omitted, it unlinks the file given in $_. The function returns the number of files successfully deleted. Note that unlink will not delete directories unless you are the superuser and the -U flag is supplied to Perl. Even if these conditions are met, be warned that unlinking a directory can inflict serious damage on your filesystem. Use rmdir instead.


Previous: Reference: undefPerl in a NutshellNext: Reference: unpack
Reference: undefBook IndexReference: unpack

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.