File::HomeDir::PathClass - File::HomeDir returning Path::Class objects
use File::HomeDir::PathClass '-all'; my $home = home(); # $home is a Path::Class object now # - or - use File::HomeDir::PathClass; my $home = File::HomeDir::PathClass->home; # $home is a Path::Class object now
Refer to File::HomeDir#METHODS for a list of which functions are supported.
File::HomeDir::PathClass supports both original File::HomeDir interfaces.
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:
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.