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::Dir(3) User Contributed Perl Documentation Dist::Metadata::Dir(3)

Dist::Metadata::Dir - Enable Dist::Metadata for a directory

version 0.927

  my $dm = Dist::Metadata->new(dir => $path_to_dir);

This is a subclass of Dist::Metadata::Dist to enable getting the dists metadata from a directory.

This can be useful if you already have a dist extracted into a directory.

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

  $dist = Dist::Metadata::Struct->new(dir => $path);

Accepts a single 'dir' argument that should be a path to a directory.

Attempts to parse name and version from directory name.

Returns the "dir" attribute specified in the constructor.

Returns the content for the specified file.

Returns a list of the file names beneath the directory (relative to the directory).

Returns the "dir" attribute since this is already a directory containing the desired files.

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.