X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDevel%2FDeclare.pm;h=8522fb21bb8b575a93eb98ee11560e558d7d1f13;hb=ef514ff470bcb87d1e8d98f9960ae3df0f4d05ef;hp=b7f85aed4e7eb8eb15e2f52282ec0650805f2f6d;hpb=69058a71e39f62282404ada4f73a93725bd905ad;p=p5sagit%2FDevel-Declare.git diff --git a/lib/Devel/Declare.pm b/lib/Devel/Declare.pm index b7f85ae..8522fb2 100644 --- a/lib/Devel/Declare.pm +++ b/lib/Devel/Declare.pm @@ -1,11 +1,11 @@ package Devel::Declare; -# ABSTRACT: Adding keywords to perl, in perl +# ABSTRACT: (DEPRECATED) Adding keywords to perl, in perl use strict; use warnings; use 5.008001; -our $VERSION = '0.006019'; +our $VERSION = '0.006020'; use constant DECLARE_NAME => 1; use constant DECLARE_PROTO => 2; @@ -309,6 +309,36 @@ over Perl's parser, allowing the creation of new syntax. This document describes how to create a simple declarator. +=head1 WARNING + +=for comment mst wrote this warning for MooseX::Declare, and ether adapted it for here: + +B Devel::Declare is a giant bag of crack +originally implemented by mst with the goal of upsetting the perl core +developers so much by its very existence that they implemented proper +keyword handling in the core. + +As of perl5 version 14, this goal has been achieved, and modules such +as L, L, and L provide +mechanisms to mangle perl syntax that don't require hallucinogenic +drugs to interpret the error messages they produce. + +If you are using something that uses Devel::Declare, please for the love +of kittens use something else: + +=over 4 + +=item * + +Instead of L, use L + +=item * + +Instead of L, use +L (requires perl 5.22) or L + +=back + =head1 USAGE We'll demonstrate the usage of C with a motivating example: a new