01 Sep 2011 11:31:34 UTC
- Distribution: File-ShareDir-PathClass
- Module version: 1.112440
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (0)
- Testers (3290 / 1 / 38)
- KwaliteeBus factor: 0
- 71.79% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity24 month
- Download (12.76KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionJQUELIN Jérôme Quelinand 1 contributors
- Jerome Quelin
- SEE ALSO
- COPYRIGHT AND LICENSE
File::ShareDir::PathClass - File::ShareDir returning Path::Class objects
use File::ShareDir::PathClass '-all'; my $dir = dist_dir("File-ShareDir-PathClass") # $dir is a Path::Class object now # - or - use File::ShareDir::PathClass; my $dir = File::ShareDir::PathClass->dist_dir("File-ShareDir-PathClass"); # $dir is a Path::Class object now
Refer to File::ShareDir (section FUNCTIONS) for a list of which functions are supported.
File::ShareDir::PathClasssupports both a procedural and a clas methods API.
All functions are exportable. Nothing is exported by default, though. One has to list which function(s) she wants to import.
Some groups are defined for your convenience:
all- all available functions.
Note that this module is exporting subs via Sub::Exporter, so groups are available either as
-group. One can also play any trick supported by Sub::Exporter, check its documentation for further information.
Otherwise, functions are available as class methods, called as:
In this case, one doesn't need to import anything during module use-age.
You can also look for information on this module at:
AnnoCPAN: Annotated CPAN documentation
This software is copyright (c) 2010 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install File::ShareDir::PathClass, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install File::ShareDir::PathClass
For more information on module installation, please visit the detailed CPAN module installation guide.