Skip to content
Browse files

Add JSON::PP::Compat file for convenience

  • Loading branch information...
1 parent 23173d1 commit 7099d8887bac5e7a3c6194bfcec8e78efb6cd5a7 @tsee tsee committed Sep 11, 2010
Showing with 42 additions and 3 deletions.
  1. +2 −2 Makefile.PL
  2. +35 −0 lib/JSON/PP/Compat.pm
  3. +5 −1 lib/JSON/PP5005.pm
View
4 Makefile.PL
@@ -4,12 +4,12 @@ use ExtUtils::MakeMaker;
WriteMakefile(
'NAME' => 'JSON-PP-Compat',
- 'VERSION_FROM' => 'lib/JSON/PP5005.pm', # finds $VERSION
+ 'VERSION_FROM' => 'lib/JSON/PP/Compat.pm', # finds $VERSION
'PREREQ_PM' => {
'Test::More' => 0,
},
($] >= 5.005 ? ## Add these new keywords supported since 5.005
- (ABSTRACT_FROM => 'lib/JSON/PP5005.pm', # retrieve abstract from module
+ (ABSTRACT=> 'lib/JSON/PP/Compat.pm', # retrieve abstract from module
AUTHOR => 'Makamaka Hannyaharamitu, E<lt>makamaka[at]cpan.orgE<gt>') : ()),
( $ExtUtils::MakeMaker::VERSION >= 6.3002 ? ('LICENSE' => 'perl', ) : () ),
View
35 lib/JSON/PP/Compat.pm
@@ -0,0 +1,35 @@
+package JSON::PP::Compat;
+use 5.005;
+$JSON::PP::Compat::VERSION = '2.00';
+use strict;
+
+1;
+__END__
+
+=pod
+
+=head1 NAME
+
+JSON::PP::Comapt - Helper module in using JSON::PP in old perls
+
+=head1 SYNOPSIS
+
+Do not use this directly! See L<JSON::PP>
+
+=head1 DESCRIPTION
+
+C<JSON::PP> calls internally.
+
+=head1 AUTHOR
+
+Makamaka Hannyaharamitu, E<lt>makamaka[at]cpan.orgE<gt>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2007-2010 by Makamaka Hannyaharamitu
+
+This library is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
+
View
6 lib/JSON/PP5005.pm
@@ -128,9 +128,13 @@ __END__
JSON::PP5005 - Helper module in using JSON::PP in Perl 5.005
+=head1 SYNOPSIS
+
+Do not use this directly! See L<JSON::PP>
+
=head1 DESCRIPTION
-JSON::PP calls internally.
+C<JSON::PP> calls internally.
=head1 AUTHOR

0 comments on commit 7099d88

Please sign in to comment.
Something went wrong with that request. Please try again.