Mailing List Archive

svn commit: r708947 - /perl/modperl/docs/trunk/src/docs/2.0/api/APR/Finfo.pod
Author: pgollucci
Date: Wed Oct 29 10:26:37 2008
New Revision: 708947

URL: http://svn.apache.org/viewvc?rev=708947&view=rev
Log:
Submitted by: Joachim Zobel <jzobel@heute-morgen.de>
Helped by: Adam Prime <adam.prime@utoronto.ca>

Perl's stat returns the mode as an octal number where as
mod_perl's APR based protection() returns the mode as a hexadecimal
number.

More information is available in:
perldoc -f stat
apr's file_io implementation


Modified:
perl/modperl/docs/trunk/src/docs/2.0/api/APR/Finfo.pod

Modified: perl/modperl/docs/trunk/src/docs/2.0/api/APR/Finfo.pod
URL: http://svn.apache.org/viewvc/perl/modperl/docs/trunk/src/docs/2.0/api/APR/Finfo.pod?rev=708947&r1=708946&r2=708947&view=diff
==============================================================================
--- perl/modperl/docs/trunk/src/docs/2.0/api/APR/Finfo.pod (original)
+++ perl/modperl/docs/trunk/src/docs/2.0/api/APR/Finfo.pod Wed Oct 29 10:26:37 2008
@@ -11,6 +11,7 @@

$device = $finfo->device; # (stat $file)[0]
$inode = $finfo->inode; # (stat $file)[1]
+ # stat returns an octal number while protection is hex
$prot = $finfo->protection; # (stat $file)[2]
$nlink = $finfo->nlink; # (stat $file)[3]
$gid = $finfo->group; # (stat $file)[4]
@@ -411,7 +412,11 @@

(stat $filename)[2]

+Note: Perl's stat returns an octal number while
+mod_perl's C<protection> returns a hex number.

+See perldoc -f stat and APR's file_io for more information
+on each.






---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org