Change 28618 by [EMAIL PROTECTED] on 2006/07/26 06:41:56 Add a few links to standard modules in perlfunc, by Gabor Szabo.
Affected files ... ... //depot/perl/pod/perlfunc.pod#529 edit Differences ... ==== //depot/perl/pod/perlfunc.pod#529 (text) ==== Index: perl/pod/perlfunc.pod --- perl/pod/perlfunc.pod#528~28526~ 2006-07-10 05:01:20.000000000 -0700 +++ perl/pod/perlfunc.pod 2006-07-25 23:41:56.000000000 -0700 @@ -2912,6 +2912,9 @@ this right, so Perl automatically removes all trailing slashes to keep everyone happy. +In order to recursively create a directory structure look at +the C<mkpath> function of the L<File::Path> module. + =item msgctl ID,CMD,ARG X<msgctl> @@ -4441,6 +4444,9 @@ open files, or pre-existing files. Check L<perlport> and either the rename(2) manpage or equivalent system documentation for details. +For a platform independent C<move> function look at the L<File::Copy> +module. + =item require VERSION X<require> @@ -4716,6 +4722,9 @@ empty. If it succeeds it returns true, otherwise it returns false and sets C<$!> (errno). If FILENAME is omitted, uses C<$_>. +To remove a directory tree recursively (C<rm -rf> on unix) look at +the C<rmtree> function of the L<File::Path> module. + =item s/// The substitution operator. See L<perlop>. @@ -5892,7 +5901,7 @@ or failure, and, if successful, sets the information associated with the special filehandle C<_>. -The File::stat module provides a convenient, by-name access mechanism: +The L<File::stat> module provides a convenient, by-name access mechanism: use File::stat; $sb = stat($filename); @@ -6661,7 +6670,7 @@ Note that this is a unary operator, not a list operator. =item unlink LIST -X<unlink> X<delete> X<remove> X<rm> +X<unlink> X<delete> X<remove> X<rm> X<del> =item unlink End of Patch.