GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Dist::Metadata::Archive(3) User Contributed Perl Documentation Dist::Metadata::Archive(3)

Dist::Metadata::Archive - Base class for Dist::Metadata archive files

version 0.927

  my $dist = Dist::Metadata->new(file => $path_to_archive);

This is a subclass of Dist::Metadata::Dist to enable determining the metadata from an archive file.

It is a base class for archive file formats:

  • Dist::Metadata::Tar
  • Dist::Metadata::Zip

It's not useful on it's own and should be used from "new" in Dist::Metadata.

  $dist = Dist::Metadata::Archive->new(file => $path);

Accepts a single "file" argument that should be a path to a file.

If called from this base class "new()" will delegate to a subclass based on the filename and return a blessed instance of that subclass.

Returns an object representing the archive file.

Returns "Unix" since most archive files are be in unix format.

Attempts to parse name and version from file name.

The "file" attribute passed to the constructor, used to load "archive".

  $dist->read_archive($file);

Returns a format-specific object representing the specified file.

This must be defined by subclasses.

Randy Stauner <rwstauner@cpan.org>

This software is copyright (c) 2011 by Randy Stauner.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2017-01-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.