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

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

Serving Software Downloads in 956 Categories, Downloaded 50.211.404 Times

File::Comments 0.07

  Date Added: September 11, 2010  |  Visits: 1.202

File::Comments

Report Broken Link
Printer Friendly Version


Product Homepage
Download (91 downloads)



File::Comments is a Perl module that ecognizes file formats and extracts format-specific comments. SYNOPSIS use File::Comments; my $snoop = File::Comments->new(); # *---------------- # | program.c: # | /* comment */ # | main () {} # *---------------- my $comments = $snoop->comments("program.c"); # => [" comment "] # *---------------- # | script.pl: # | # comment # | print "howdy!n"; # another comment # *---------------- my $comments = $snoop->comments("script.pl"); # => [" comment", " another comment"] # or strip comments from a file: my $stripped = $snoop->stripped("script.pl"); # => "print "howdy!n";" # or just guess a files type: my $type = $snoop->guess_type("program.c"); # => "c" File::Comments guesses the type of a given file, determines the format used for comments, extracts all comments, and returns them as a reference to an array of chunks. Alternatively, it strips all comments from a file. Currently supported are Perl scripts, C/C++ programs, Java, makefiles, JavaScript, Python and PHP. The plugin architecture used by File::Comments makes it easy to add new formats. To support a new format, a new plugin module has to be installed. No modifications to the File::Comments codebase are necessary, new plugins will be picked up automatically. File::Comments can also be used to simply guess a files type. It it somewhat more flexible than File::MMagic and File::Type. File types in File::Comments are typically based on file name suffixes (*.c, *.pl, etc.). If no suffix is available, or a given suffix is ambiguous (e.g. if several plugins have registered a handler for the same suffix), then the files content is used to narrow down the possibilities and arrive at a decision. WARNING: THIS MODULE IS UNDER DEVELOPMENT, QUALITY IS ALPHA. IF YOU FIND BUGS, OR WANT TO CONTRIBUTE PLUGINS, PLEASE SEND THEM MY WAY..

Requirements: No special requirements
Platforms: Linux
Keyword: Comment Comments File File Formats Filecomments Libraries Module New Perl Perl Module Programming
Users rating: 0/10

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


FILE::COMMENTS RELATED
Business  -  Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats 4
Brief Description Install this compatibility pack if you would like to open, edit, and save documents, workbooks, and presentations that were created in the newer versions of Word, Excel, and PowerPoint. Scroll down to see instructions and...
37 MB  
Libraries  -  SDL_sound 1.0.1
SDL_sound is a library that handles the decoding of several popular sound file formats, such as .WAV and .MP3. It is meant to make the programmers sound playback tasks simpler. The programmer gives SDL_sound a filename, or feeds it data directly...
99.33 KB  
3D Graphic Tools  -  Ansilove/PHP 1.03
Ansilove/PHP is a set of tools to convert ANSi and artscene related file formats into PNG images, supporting ANSi (.ANS), BiNARY (.BIN), and ADF (.ADF) formats. Ansilove/PHP project includes an all purposes command line converter, along with a...
133.12 KB  
Video Editors  -  ISO - DAX - CSO Converter 1.08
ISO - DAX - CSO Converter is simple Kommander script for converting PSP UMD backups between three file formats ISO DAX and CSO. Script depends on: Kommander ciso v1.01 daxcr v0.3 kommander is part of kdewebdev3 packet To compile ciso and...
48.13 KB  
3D Graphic Tools  -  Libmorph 0.1.2
Libmorph is a library that reads 3d mesh file formats saved by Autodesks 3D Studio and Newteks Lightwave. The main purpose of LibMorph is loading (and saving) 3d models (3d modeller object files). Given loader is dynamically linked when format...
112.64 KB  
3D Graphic Tools  -  PRICE 0.8.1
PRICE can open several image file formats and apply high-quality filters and other enhancements. PRICE was written to support the authors research in image processing. PRICE was born to support my research in image processing. So I have decided...
153.6 KB  
Multimedia & Graphics  -  Vatata Rm for VLC 1.0 Beta
Vatata Rm for VLC is a patch to allow VLC to play video files that use Real's rmvb and rm file formats. This code uses the same technique as MPlayer to demux such files, namely loading Real's DLL. VLC is a powerful open source media...
71.68 KB  
Compression Tools  -  SFXWizard 2011.09.15.
SFXWizard is a comprehensive, easy-to-use tool for handling your compressed files. It enables you to create professional compressed files in various formats just with a few clicks. It supports self-extracting exe format, generally used file...
3.29 MB  
Libraries  -  File::Find::Rule::XPath 0.03
File::Find::Rule::XPath is a Perl module that contains rule to match on XPath expressions. SYNOPSIS use File::Find::Rule::XPath; my @files = File::Find::Rule->file ->name(*.dkb) ->xpath( //section/title[contains(., "Crustacean")] )...
4.1 KB  
Libraries  -  File::Where 0.05
File::Where is a Perl module to find the absolute file for a program module; absolute dir for a repository. SYNOPSIS ####### # Subroutine interface # use File::Where qw(pm2require where where_dir where_file where_pm where_repository);...
83.97 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 4.0.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...
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