Download Archive Ar 1 13b - Archive Ar 1 13b Description, Archive Ar 1 13b Reviews
Contact
 


 

Download

 
Download Now (6K)
Perl Artistic License
Downloads till now: 8
 
 

Quick search

 



 

Rate this software

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

No. Votes

0

 

Linux

Assembler Tools , Bug Tracking , Code Generators , Compilers , Debuggers , Disassemblers , Internationalization , Interpreters , Libraries , Localization, Perl Modules , Preprocessors , Quality Assurance and Testing , UI (User Interfaces) , Version Control , Widgets ,

Windows

Mac

Mobile

Drivers

Scripts - DHTML

Scripts - DHTML (new)

Web Developer Blog

Web Developer Blog (new)

Scripts and Applications

Ajax
ASP
ASP.NET
C and C++
CFML
CGI and Perl
Flash
Java
JavaScript
PHP
Python
XML

Archive::Ar 1.13b

 

Details

Size: 6K
Last Update: 2008-04-19 23:33:00
OS Support: Linux
License/Program Type: Perl Artistic License
Publisher: Jay Bonci
Price:$0.00
Description:

Archive::Ar 1.13b is libraries software developed by Jay Bonci.
Archive::Ar is a Perl interface for manipulating ar archives.



SYNOPSIS

use Archive::Ar;

my $ar = new Archive::Ar("./foo.ar");

$ar->add_data("newfile.txt","Some contents", $properties);

$ar->add_files("./bar.tar.gz", "bat.pl")
$ar->add_files(["./again.gz"]);

$ar->remove("file1", "file2");
$ar->remove(["file1", "file2");

my $filedata = $ar->get_content("bar.tar.gz");

my @files = $ar->list_files();
$ar->read("foo.deb");

$ar->write("outbound.ar");

$ar->DEBUG();

Archive::Ar is a pure-perl way to handle standard ar archives.

This is useful if you have those types of old archives on the system, but it is also useful because .deb packages for the Debian GNU/Linux distribution are ar archives. This is one building block in a future chain of modules to build, manipulate, extract, and test debian modules with no platform or architecture dependence.

You may notice that the API to Archive::Ar is similar to Archive::Tar, and this was done intentionally to keep similarity between the Archive:: modules

Class Methods
new()
new($filename)
new(GLOB,$debug)

Returns a new Archive::Ar object. Without a filename or glob, it returns an empty object. If passed a filename as a scalar or in a GLOB, it will attempt to populate from either of those sources. If it fails, you will receive undef, instead of an object reference.

This also can take a second optional debugging parameter. This acts exactly as if DEBUG() is called on the object before it is returned. If you have a new() that keeps failing, this should help.
read($filename)
read(GLOB);

This reads a new file into the object, removing any ar archive already represented in the object. Any calls to DEBUG() are not lost by reading in a new file. Returns the number of bytes read, undef on failure.

read_memory($data)

This read information from the first parameter, and attempts to parse and treat it like an ar archive. Like read(), it will wipe out whatever you have in the object and replace it with the contents of the new archive, even if it fails. Returns the number of bytes read (processed) if successful, undef otherwise.

list_files()
This lists the files contained inside of the archive by filename, as an array.
add_files("filename1", "filename2")
add_files(["filename1", "filename2"])

Takes an array or an arrayref of filenames to add to the ar archive, in order. The filenames can be paths to files, in which case the path information is stripped off. Filenames longer than 16 characters are truncated when written to disk in the format, so keep that in mind when adding files.

Due to the nature of the ar archive format, add_files() will store the uid, gid, mode, size, and creation date of the file as returned by stat();

add_files() returns the number of files successfully added, or undef on failure.
add_data("filename", $filedata)

Takes an filename and a set of data to represent it. Unlike add_files, add_data is a virtual add, and does not require data on disk to be present. The data is a hash that looks like:

$filedata = {
"data" => $data,
"uid" => $uid, defaults to zero
"gid" => $gid, defaults to zero
"date" => $date, date in epoch seconds. Defaults to now.
"mode" => $mode, defaults to "100644";
}

You cannot add_data over another file however. This returns the file length in bytes if it is successful, undef otherwise.

write()
write("filename.ar")

This method will return the data as an .ar archive, or will write to the filename present if specified. If given a filename, write() will return the length of the file written, in bytes, or undef on failure. If the filename already exists, it will overwrite that file.
get_content("filename")

This returns a hash with the file content in it, including the data that the file would naturally contain. If the file does not exist or no filename is given, this returns undef. On success, a hash is returned with the following keys:

name - The file name
date - The file date (in epoch seconds)
uid - The uid of the file
gid - The gid of the file
mode - The mode permissions
size - The size (in bytes) of the file
data - The contained data
remove("filename1", "filename2")
remove(["filename1", "filename2"])

The remove method takes a filenames as a list or as an arrayref, and removes them, one at a time, from the Archive::Ar object. This returns the number of files successfully removed from the archive.

DEBUG()

This method turns on debugging. Optionally this can be done by passing in a value as the second parameter to new. While verbosity is enabled, Archive::Ar will toss a warn() if there is a suspicious condition or other problem while proceeding. This should help iron out any problems you have while using the module.

Requirements:
Perl

What's New in This Release:
Fixes to the Makefile.PL file. Ar.pm wasn't being put into /blib Style fix to a line with non-standard unless parenthesis
Archive::Ar 1.13b supports different languages (including english). It works with Linux.

Downloading Archive::Ar 1.13b will take several seconds if you use fast ADSL connection.

Leave a comment




(optional)

What is 7-3?




0 comments


Add to

 Del.icio.us   Digg It   Furl   YahooMyWeb   Blinklist
 

Archive::Ar 1.13b Version History

Product Date Added
Archive::Ar 1.13b 2008-04-19 23:33:00


Related Software

Barter
From category: Version-Control
Barter 0.2 is version control software developed by Joe Geldart. Barter is an integration of the Bazaar revision control system into Nautilus. Barter is an extension for the Nautilus file-m...
C::Include
From category: Libraries
C::Include 1.40 is libraries software developed by Albert N. MICHEEV. C::Include is a package to easy operate with binary data via describing they like C/C++ structs. CLASSES AND PACKAGES \...
HPAlib
From category: Libraries
HPAlib offers functions for high precision arithmetic, a high precision math library and functions....
CGI::Validate
From category: Libraries
CGI::Validate 2.000 is libraries software developed by Byron Brummer. CGI::Validate is an advanced CGI form parser and type validation. SYNOPSIS use CGI::Validate;...
Bugzilla
From category: Bug-Tracking
Bugzilla 2.23.3 is bug tracking software developed by The Mozilla Organization. Bugzilla project is server software designed to help you manage software development. Bugzilla is a \"Defect T...
Audio::SPX 0.0801
From category: Libraries
Audio::SPX 0.0801 is libraries software developed by David Huggins-Daines. Audio::SPX is a Perl interface to the Sphinx-II audio library. SYNOPSIS use Audio::SPX; my $ad = Audi...
Apache DBILogger
From category: Perl-Modules
Apache::DBILogger is a Perl module that tracks what&039;s being transferred in a DBI database....
Cairo
From category: Libraries
Cairo is a vector graphics library with cross-device output support....
ATK 1.12.3
From category: Libraries
ATK 1.12.3 is libraries software developed by ATK Team. ATK is an accessibility library for GNOME. Requirements: GLib-2.0.0 or better Building: To configure ATK, run the ./...
I18NEdit
From category: Internationalization
I18NEdit is a tool for managing distributed internationalized Java-style resources....
DrJava 20061025-1556
From category: Assembler-Tools
DrJava 20061025-1556 is assembler tools software developed by National Science Foundation. DrJava is a lightweight development environment for writing Java programs. DrJava project is designed prim...
CentralNic Unicode Library
From category: Libraries
CentralNic Unicode Library 0.0.1 is libraries software developed by Gavin Brown. The CentralNic Unicode Library provides some PHP classes for maniuplating Unicode data. These classes are general pu...
Etcsvn
From category: Version-Control
Etcsvn 0.2.1 is version control software developed by Joseph Rawson. Etcsvn is a command line program for managing system configurations in subversion. Etcsvn doesn\'t make a working copy out of yo...
Algorithm::C3 0.05
From category: Libraries
Algorithm::C3 0.05 is libraries software developed by Stevan Little and Brandon L. Black. Algorithm::C3 is a module for merging hierarchies using the C3 algorithm. SYNOPSIS use Algo...
commonc++
From category: Libraries
commonc++ 0.2 is libraries software developed by Mark Lindner. commonc++ project is a C++ class library for developing cross-platform systems software for POSIX and Windows systems. It provi...
 

Top Downloads

 
1. Canon PIXMA iP1200 Printer Driver
2. Canon PIXMA iP1000 Printer Driver
3. Canon i-SENSYS LBP2900 Printer Driver R
4. Realtek ALC/ 262/ 265/ 268/ 660/ 861/ 880/ 882/ 883/ 885/ 888 Audio
5. Canon PIXMA MP210 MP Drivers
6. Canon PIXMA iP1300 Printer Driver c
7. Canon PIXMA iP1300 Printer Driver a
8. MediaLink
9. LG GSA-2166D
10. Genius Eye 110 Webcam Driver
11. Canon PIXMA MP160 MP Drivers xp64
12. Realtek RTL8139C(L)+/RTL8139D(L)/RTL8100(L)/RTL8130/RTL8139B(L) Driver
13. SendSong
14. Realtek RTL8169/8110/RTL8139/810x/RTL8139C+Serie
15. Canon PIXMA iP1600 Printer Driver
16. MATSONIC MS9158E+ Bios
17. Alcatel SpeedTouch 330/USB
18. Canon PIXMA MP220 MP Drivers
19. Sigmatel STAC 92XX C-Major HD Audio
20. Canon LaserShot LBP-1210 Printer Driver

DownloadTube Editor Reviews

 
1. PvLog LicenseManagerKiller Win32
The purpose of PvLog LicenseManagerKiller is to warn against...
2. VeryPDF PDF Converter
VeryPDF PDF Converter is an easy to use PDF tool for creatin...
3. Jet Email Extractor
Jet Email Extractor is a smart tool that lets you extract th...
4. USB Port Blocker
USB drive data theft monitoring software that prevents unaut...
5. PvLog DeObfuscator Win32
PvLog Deobfuscator is a simple to use MSIL code optimizer. ...
6. Desktop Authority
The Desktop Authority family of products reduces the cost of...
7. ProLingo English to Spanish Dictionary
ProLingo English to Spanish Dictionary - a powerful, compreh...
8. Power SEO URLs for Zen Cart
Power SEO for Zen Cart - Zen Cart module is a powerful repla...
9. PvLog LicenseManagerKiller 64-bit x64
The purpose of PvLog LicenseManagerKiller is to warn against...
10. SDR Screen Capture
SDR Screen Capture is a very useful tool that will help you ...

Software Reviews Full List



Recent Blog Posts

 
1. Google Search-based Keyword Tool Improves The Management of AdWords Campaigns
The keywords density value influences both web pages visibil...
2. Rapid Publishing of Articles in A Joomla! Blog
Joomla! content management system has built in the capabilit...
3. Microsoft Will Provide A Free Anti-Malware Alternative For Windows Live OneCare In 2009
In response for the need of a free solution for computer pro...
4. Short Introduction To PHP: Necessary Tools And The Basic Structure Of A Script
PHP: Hypertext Preprocessor is a popular scripting language ...
5. Website Layout Testing With Lorem Ipsum Text: Samples And Web Based Generators
The text inside a website layout distracts the reader from s...
6. A Breakthrough In Performance Of Desktop Computers: Intel Core i7 Processor Marks A New Benchmark World Record
The new Intel Core i7 processor, by successfully combining I...
7. The Improvements of The Adobe Flash Platform Simplifies Development Tasks
Adobe Flash Platform is a web development reference system o...
8. An Easy To Setup PHP / JavaScript Image Gallery: minishowcase
Image galleries are common elements of any modern website. C...
9. New Features of Google SketchUp 7
Google SketchUp 7 is a fast and free 3D modeling software ut...
10. Get A Free SEO Course From InlineSEO.com
InlineSEO.com, a known search engine optimization company, l...

Last 20 Scripts

 
1. GrezorTeamSpeak
GrezorTeamSpeak is a PHP based chat application.
2. Simple Banner Rotator Script
Simple Banner Rotator Script is a simple JavaScript banner i
3. PHP Text Hits Counter Script
PHP Text Hits Counter Script is a lightweight hit counter ea
4. Random Redirection Script
Random Redirection Script will redirect a user to a random U
5. PHP Referrer Logger
PHP Referrer Logger is a simple flat file PHP referrer logge
6. Short URL PHP Script
Short URL PHP Script allows you host a URL shortening servic
7. Easy Social Bookmarks
Easy Social Bookmarks script provides a simple and easy way
8. phpBB text hit counter
phpBB3 module adds a simple text hit counter in the footer o
9. razorCMS
razorCMS is a PHP open source content management system base
10. HTMLbuild
HTMLbuild allows the building of HTML on the fly using JavaS
11. phpAjax
phpAjax is meant to help make it easier for developers to in
12. NS Gallery JS
NS Gallery JS is a JavaScript based image gallery.
13. NS Download Manager
NS Download Manager is a mini-download portal site.
14. Zip/Postal Code Lookup Class
Zip/Postal Code Lookup Class provides you the ability to loo
15. EyeDataGrid Control
Eyesis Data Grid Control is all you need when it comes to di
16. Infosniper Livevisits
Infosniper Livevisits enables you to track and analyze all o
17. Gmail Imap Mod
Gmail Imap Mod is a simple script that will save your time f
18. Recipes PHP Script
Recipes PHP Script is a ready made recipes website built wit
19. URL Management Script
URL Management script is a PHP tool that helps you to deploy
20. Yahoo Weather API
Yahoo Weather API uses Yahoo RSS feed to retrieve current we