™.. File::CheckTree - Online Linux Manual PageSection : 3pm
Updated : 2009-02-12
Source : perl v5.10.1
Note : Perl Programmers Reference Guide

NAMEFile::CheckTree − run many filetest checks on a tree

SYNOPSIS​ use File::CheckTree; ​ ​ $num_warnings = validate( q{ ​ /vmunix −e || die ​ /boot −e || die ​ /bin cd ​ csh −ex ​ csh !−ug ​ sh −ex ​ sh !−ug ​ /usr −d || warn "What happened to $file?\n"});

DESCRIPTIONThe validate() routine takes a single multiline string consisting of directives, each containing a filename plus a file test to try on it. (The file test may also be a cd, causing subsequent relative filenames to be interpreted relative to that directory.) After the file test you may put \*(C`|| die\*(C'\fR to make it a fatal error if the file test fails. The default is \*(C`|| warn\*(C'\fR. The file test may optionally have a "!' prepended to test for the opposite condition. If you do a cd and then list some relative filenames, you may want to indent them slightly for readability. If you supply your own die() or warn() message, you can use $file to interpolate the filename. Filetests may be bunched: −rwx tests for all of \*(C`\-r\*(C'\fR, \f(CW\*(C`\-w\*(C'\fR, and \f(CW\*(C`\-x\*(C'\fR. Only the first failed test of the bunch will produce a warning. The routine returns the number of warnings issued.

AUTHORFile::CheckTree was derived from lib/validate.pl which was written by Larry Wall. Revised by Paul Grassie <grassie@perl.com> in 2002.

HISTORYFile::CheckTree used to not display fatal error messages. It used to count only those warnings produced by a generic \*(C`|| warn\*(C'\fR (and not those in which the user supplied the message). In addition, the validate() routine would leave the user program in whatever directory was last entered through the use of cd directives. These bugs were fixed during the development of perl 5.8. The first fixed version of File::CheckTree was 4.2.
0
Johanes Gumabo
Data Size   :   6,257 byte
man-File::CheckTree.3pmBuild   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   5 / 255,568
Visitor ID   :     :  
Visitor IP   :   18.191.91.15   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|252|File::CheckTree.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|File::CheckTree.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|252|File::CheckTree.3pm|41|br══─}─══|'br══─}─══ )         (htmlprn|149|File::CheckTree.3pm|41|'br══─}─══ |'br══─}─══ )         (rof_nr_x|149|File::CheckTree.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (rof_unit_scale_px|41|File::CheckTree.3pm|51/52|F|.ie \nF ══─{─══. de IX )         (rof_if|19|File::CheckTree.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (htmlprn|149|File::CheckTree.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX )         (rof_escape_sequence|91|File::CheckTree.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2" )         (parse_manual_page_|252|File::CheckTree.3pm|57|══─}─══|.══─}─══ )         (htmlprn|149|File::CheckTree.3pm|57|.══─}─══ |.══─}─══ )         (rof_escape_sequence|91|File::CheckTree.3pm|156|\*(C`|| die\*(C'\fR to make it a fatal error if the file test fails. |you may put \f(CW\*(C`|| die\*(C'\fR to make it a fatal error if the file test fails. )         (rof_escape_sequence|91|File::CheckTree.3pm|157|\*(C`|| warn\*(C'\fR. The file test may optionally have a "!' prepended |The default is \f(CW\*(C`|| warn\*(C'\fR. The file test may optionally have a "!' prepended )         (rof_escape_sequence|91|File::CheckTree.3pm|163|\*(C`\-r\*(C'\fR, \f(CW\*(C`\-w\*(C'\fR, and \f(CW\*(C`\-x\*(C'\fR. |Filetests may be bunched: \*(L"\-rwx\*(R" tests for all of \f(CW\*(C`\-r\*(C'\fR, \f(CW\*(C`\-w\*(C'\fR, and \f(CW\*(C`\-x\*(C'\fR. )         (rof_escape_sequence|91|File::CheckTree.3pm|175|\*(C`|| warn\*(C'\fR |It used to count only those warnings produced by a generic \f(CW\*(C`|| warn\*(C'\fR )