Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.074.551 Times

File::Attributes::Recursive 0.02

  Date Added: October 03, 2010  |  Visits: 940

File::Attributes::Recursive

Report Broken Link
Printer Friendly Version


Product Homepage
Download (88 downloads)

File::Attributes::Recursive module contains inherit file attributes from parent directories. SYNOPSIS Works like File::Attributes, but will recurse up the directory tree until a matching attribute is found. EXPORT None, by default. Specify the functions youd like to use as arguments to the module. :all means export everything. FUNCTIONS get_attribute_recursively($file, [$top], $attribute) Returns the value of attribute $attribute. If $top is specified, then the search will terminate when the path no longer contains $top. (i.e. if $file is /foo/bar/baz/quux and $top is get_attributes_recursively($file, [$top]) Returns a hash of key value pairs for all attributes that apply to $file. Only the closest attributes are returned. Given: /a (a = yes, foo = bar) /a/b (b = yes, foo = baz) /a/b/c (c = yes) get_attributes_recursively(/a/b/c, /a) will return: (a => yes, b => yes, c => yes, foo => baz). The foo => bar is masked by the "closer" foo => baz. list_attributes_recursively($file, [$top]) Returns a list of attributes that are defined and apply to $file. Like keys get_attributes_recursively($file, [$top]), but faster. NOTABLY ABSENT FUNCTIONS unset_attribute_recursively There are two possible ways for this function to behave -- either recurse until the attribute is removed, or recurse to top, removing the attribute at each level. The first doesnt make sense, and the second is dangerous. If you need this function, write it for the specific needs of your application; I think thats the safest thing to do. (Note that rm refuses to rm .., so I think theres some precedent here.) Whats New in This Release: - Perl.

Requirements: No special requirements
Platforms: Linux
Keyword: Attribute Attributes File File Attributes Fileattributesrecursive Libraries Module Programming Recursively Top
Users rating: 0/10

License: Freeware Size: 25.6 KB
FILE::ATTRIBUTES::RECURSIVE RELATED
Libraries  -  File::Signature 1.009
File::Signature is a Perl module to detect changes to a files content or attributes. SYNOPSIS use File::Signature; my $sig = File::Signature->new(/some/file); # If you have a stringified signature stored in $string # you can create a...
8.19 KB  
Libraries  -  File::PathList 0.02
File::PathList is a Perl module that can find a file within a set of paths (like @INC or Java classpaths). SYNOPSIS # Create a basic pathset my $inc = File::PathList->new( @INC ); # Again, but with more explicit params my $inc2 =...
26.62 KB  
Libraries  -  File::Remove 0.34
File::Remove is a Perl module to remove files and directories. SYNOPSIS use File::Remove qw(remove); # removes (without recursion) several files remove qw( *.c *.pl ); # removes (with recursion) several directories remove 1, qw(...
14.34 KB  
Libraries  -  File::DirCompare 0.3
File::DirCompare is a Perl module to compare two directories using callbacks. SYNOPSIS use File::DirCompare; # Simple diff -r --brief replacement use File::Basename; File::DirCompare->compare($dir1, $dir2, sub { my ($a, $b) = @_; if (!...
8.19 KB  
Libraries  -  File::pushd 0.99
File::pushd is a Perl module to change directory temporarily for a limited scope. SYNOPSIS use File::pushd; chdir $ENV{HOME}; # change directory again for a limited scope { my $dir = pushd( /tmp ); # working directory changed to /tmp }...
15.36 KB  
Libraries  -  File::Repl 1.20
File::Repl is a Perl module that provides file replication utilities. SYNOPSIS use File::Repl; %con = { dira => C:/perl, dirb => M:/perl, verbose => 1, age => 10, }; $ref=File::Repl->New(%con); $r1 = $ref->Update(.p(l|m),a b,1);...
15.36 KB  
Libraries  -  File::Flock 104.111901
File::Flock is a Perl module for file locking with flock. SYNOPSIS use File::Flock; lock($filename); lock($filename, shared); lock($filename, undef, nonblocking); lock($filename, shared, nonblocking); unlock($filename); my $lock =...
6.14 KB  
Libraries  -  File::BasicFlock 98.1202
File::BasicFlock is a Perl module for file locking with flock. SYNOPSIS use File::BasicFlock; lock($filename); lock($filename, shared); lock($filename, undef, nonblocking); lock($filename, shared, nonblocking); unlock($filename);...
3.07 KB  
Libraries  -  File::RdistByRsync 0.3
File::RdistByRsync is a Perl module that can read rdist distfiles, emulate using rsync. SYNOPSIS use File::RdistByRsync @dist_blocks = parse_rdist($distfile, %options) ($args, $extras, @dist_blocks) = rdist(@ARGV); rsync(@ARGV) perl...
10.24 KB  
Libraries  -  File::LckPwdF 0.01
File::LckPwdF is a Perl module to lock and unlock the passwd and shadow files with lckpwdf and ulckpwdf. SYNOPSIS use File::LckPwdF; (lock_passwd(15)) || (die "Cant lock password file:n$! stopped"); # ... do stuff with the passwd file ......
5.12 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB