| 1 | package File::HomeDir::Driver; | ||
| 2 | |||
| 3 | # Abstract base class that provides no functionality, | ||
| 4 | # but confirms the class is a File::HomeDir driver class. | ||
| 5 | |||
| 6 | 7 | ▶ | use 5.008003; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 7 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 7 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 7 | ▶ | use Carp (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 7 | ▶ | use vars qw{$VERSION}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | BEGIN | ||
| 14 | { | ||
| 15 | 7 | ▶ | $VERSION = '1.004'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | } | ||
| 17 | |||
| 18 | sub my_home | ||
| 19 | { | ||
| 20 | 0 | ▶ | Carp::croak("$_[0] does not implement compulsory method $_[1]"); |
|
Subroutine
my_home: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 21 | } | ||
| 22 | |||
| 23 | 7 | 1; | |
| 24 | |||
| 25 | =pod | ||
| 26 | |||
| 27 | =head1 NAME | ||
| 28 | |||
| 29 | File::HomeDir::Driver - Base class for all File::HomeDir drivers | ||
| 30 | |||
| 31 | =head1 DESCRIPTION | ||
| 32 | |||
| 33 | This module is the base class for all L<File::HomeDir> drivers, and must | ||
| 34 | be inherited from to identify a class as a driver. | ||
| 35 | |||
| 36 | It is primarily provided as a convenience for this specific identification | ||
| 37 | purpose, as L<File::HomeDir> supports the specification of custom drivers | ||
| 38 | and an C<-E<gt>isa> check is used during the loading of the driver. | ||
| 39 | |||
| 40 | =head1 AUTHOR | ||
| 41 | |||
| 42 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||
| 43 | |||
| 44 | =head1 SEE ALSO | ||
| 45 | |||
| 46 | L<File::HomeDir> | ||
| 47 | |||
| 48 | =head1 COPYRIGHT | ||
| 49 | |||
| 50 | Copyright 2009 - 2011 Adam Kennedy. | ||
| 51 | |||
| 52 | This program is free software; you can redistribute | ||
| 53 | it and/or modify it under the same terms as Perl itself. | ||
| 54 | |||
| 55 | The full text of the license can be found in the | ||
| 56 | LICENSE file included with this module. | ||
| 57 | |||
| 58 | =cut | ||