home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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: undef Perl in a Nutshell Next: Reference: unpack
Reference: undef Book Index Reference: unpack

Library Navigation Links

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