File::Comments 0.07
Sponsored Links
File::Comments 0.07 Ranking & Summary
File size:
0.012 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
870
Date added:
2007-06-09
Publisher:
Mike Schilli
File::Comments 0.07 description
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.
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.
File::Comments 0.07 Screenshot
File::Comments 0.07 Keywords
Comments 0.07
Perl module
File Formats
comments
file
comment
module
new
Perl
File::Comments
FileComments
File::Comments 0.07
Libraries
Programming
Bookmark File::Comments 0.07
File::Comments 0.07 Copyright
WareSeeker periodically updates pricing and software information of File::Comments 0.07 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of File::Comments 0.07 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
comments myspace
myspace comments
my hot comments
comments for myspace
hide comments
comments box
hot free comments
funny myspace comments
happy birthday comments
comments in scroll box
garmin astro 220 comments
funny comments
zwani comments
hide comments myspace
report card comments
myspace birthday comments
hot comments
comments you
Related Software
Acme::Comment is a Perl module that allows multi-line comments which are filtered out. Free Download
Rsync::Config::Comment is a Perl module with comments as objects. Free Download
RPM::Constants is a Perl module with groups of RPM-defined symbols. Free Download
Locale::Memories is a Perl module for L10N Message Retrieval. Free Download
Code::Perl is a Perl module to produce Perl code from a tree. Free Download
Perl OpenID is a perl module for verifying OpenID identities. Free Download
Parallel::Workers::Shared is a simple Perl module. Free Download
HOP::Lexer is a Perl module for "Higher Order Perl" Lexer. Free Download
Latest Software
Popular Software
Favourite Software