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 32.405.459 Times

File::Listing 5.805

  Date Added: June 14, 2010  |  Visits: 911

File::Listing

Report Broken Link
Printer Friendly Version


Product Homepage
Download (79 downloads)



File::Listing is a Perl module to parse directory listing. SYNOPSIS use File::Listing qw(parse_dir); for (parse_dir(`ls -l`)) { ($name, $type, $size, $mtime, $mode) = @$_; next if $type ne f; # plain file #... } # directory listing can also be read from a file open(LISTING, "zcat ls-lR.gz|"); $dir = parse_dir(*LISTING, +0000); This module exports a single function called parse_dir(), which can be used to parse directory listings. Currently it only understand Unix ls -l and ls -lR format. It should eventually be able to most things you might get back from a ftp server file listing (LIST command), i.e. VMS listings, NT listings, DOS listings,... The first parameter to parse_dir() is the directory listing to parse. It can be a scalar, a reference to an array of directory lines or a glob representing a filehandle to read the directory listing from. The second parameter is the time zone to use when parsing time stamps in the listing. If this value is undefined, then the local time zone is assumed. The third parameter is the type of listing to assume. The values will be strings like unix, vms, dos. Currently only unix is implemented and this is also the default value. Ideally, the listing type should be determined automatically. The fourth parameter specifies how unparseable lines should be treated. Values can be ignore, warn or a code reference. Warn means that the perl warn() function will be called. If a code reference is passed, then this routine will be called and the return value from it will be incorporated in the listing. The default is ignore. Only the first parameter is mandatory. The return value from parse_dir() is a list of directory entries. In a scalar context the return value is a reference to the list. The directory entries are represented by an array consisting of [ $filename, $filetype, $filesize, $filetime, $filemode ]. The $filetype value is one of the letters f, d, l or ?. The $filetime value is the seconds since Jan 1, 1970. The $filemode is a bitmask like the mode returned by stat()..

Requirements: No special requirements
Platforms: Linux
Keyword: Dir Directory Directory Listing Filelisting Libraries Listing Parse Perl Perl Module Programming Value Will Be
Users rating: 0/10

License: Freeware Size: 235.52 KB
USER REVIEWS
More Reviews or Write Review


FILE::LISTING RELATED
Libraries  -  MMDS::Properties 1.902
MMDS::Properties Perl module contains flexible properties handling for MMDS. use MMDS::Properties; my $cfg = new MMDS::Properties; # Preset a property. $cfg->set_property("config.version", "1.23"); # Parse a properties file....
409.6 KB  
Libraries  -  File::Basename 5.8.8
File::Basename is a Perl module to parse file paths into directory, filename and suffix. SYNOPSIS use File::Basename; ($name,$path,$suffix) = fileparse($fullname,@suffixlist); $name = fileparse($fullname,@suffixlist); $basename =...
12.2 MB  
Finance  -  GTR Directory 1.1
The GTR Directory, the worlds most comprehensive listing of global trade and export finance professionals, is now available as an app for both iPhone and iPad. The GTR Directory is a Who's Who of companies and individuals involved in...
15.6 MB  
Desktop Utilities  -  Search Into Directory 0.1
With this service menu you will be able to search into directory by right-clicking on it. Search Into Directory starts a kfind window (part of kdebase) ready to search into the selected directory. Note : This servicemenu is in fact duplicated of...
84.99 KB  
Libraries  -  ClearCase::Wrapper::DSB 1.12
ClearCase::Wrapper::DSB Perl module contains David Boyces contributed cleartool wrapper functions. SYNOPSIS This is an overlay module for ClearCase::Wrapper containing David Boyces non-standard extensions. See perldoc ClearCase::Wrapper for...
18.43 KB  
Programming  -  Queue::Dir 0.01
Queue::Dir allows the manipulation of objects placed in a queue. The queue is implemented as a directory where each object is stored as a file. METHODS The following methods are defined: my $q = new Queue::File (...)
10.24 KB  
Libraries  -  Gtk2::Ex::Dialogs::ChooseDirectory 0.11
Gtk2::Ex::Dialogs::ChooseDirectory is a Perl module that provides a file selection dialog. SYNOPSIS use Gtk2::Ex::Dialogs::ChooseDirectory ( destroy_with_parent => TRUE, modal => TRUE ); # do some stuff like creating your apps main $window...
20.48 KB  
Libraries  -  File::Wildcard 0.10
File::Wildcard is a Perl module for enhanced glob processing. SYNOPSIS use File::Wildcard; my $foo = File::Wildcard->new(path => "/home/me///core"); while (my $file = $foo->next) { unlink $file; } When looking at how various operating...
23.55 KB  
3D Graphic Tools  -  ImageBackup 1.8
This is a small Perl script to create backup CDs out of images. I like to organize my digital pictures into a directory structure based on image content and subject. I dont store them by date. This makes it nice to find pictures, but difficult to...
5.12 KB  
Graphics Viewers  -  DigiMode PhotoVU 1.0.0
This Photo viewer is a very powerful image viewing utility, You can search CD or any drive or a specicific directory in you computer for images and thousands of images will be loaded to the playlist in few seconds. Just click Play to start...
455 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
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...
3.88 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