このページは大阪弁化フィルタによって翻訳生成されたんですわ。

翻訳前ページへ


unlink - perldoc.perl.org
The Wayback Machine - http://web.archive.org/web/20090628152940/http://perldoc.perl.org:80/functions/unlink.html
Yet Another Perl Conference :: Europe :: 2009
-- Perl 5.10.0 documentation --
unlink
  • unlink LIST

  • unlink

    Deletes a list of files. Returns the number of files successfully deleted.

        $cnt = unlink 'a', 'b', 'c';
        unlink @goners;
        unlink <*.bak>;

    Note: unlink will not attempt to delete directories unless you are superuser and the -U flag is supplied to Perl. Even if these conditions are met, be warned that unlinking a directory can inflict damage on your filesystem. Finally, using unlink on directories is not supported on many operating systems. Use rmdir instead.

    If LIST is omitted, uses $_ .