X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSquirrel.pm;h=565a3e274be4cb97bed2312788cd354bcb17bd91;hb=448fbe3285470e2885ab4e105044fa84bdc9e078;hp=5599db04a587a5a5aedaa7b679db39bb4f4bdf8b;hpb=eb061d5b0c1eea896c00ac732f6f4096255a79e3;p=gitmo%2FMouse.git diff --git a/lib/Squirrel.pm b/lib/Squirrel.pm index 5599db0..565a3e2 100644 --- a/lib/Squirrel.pm +++ b/lib/Squirrel.pm @@ -1,7 +1,4 @@ -#!/usr/bin/perl - package Squirrel; - use strict; use warnings; @@ -32,6 +29,8 @@ sub _handlers { } sub import { + require Carp; + Carp::carp("Squirrel is deprecated. Please use Any::Moose instead. It fixes a number of design problems that Squirrel has."); goto $_[0]->_handlers->{import}; } @@ -39,7 +38,7 @@ sub unimport { goto $_[0]->_handlers->{unimport}; } -__PACKAGE__ +1; __END__ @@ -57,6 +56,11 @@ Squirrel - Use L, unless L is already loaded. is => "rw", ); +=head1 DEPRECATION + +L is being deprecated. L provides the same functionality, +but better. :) + =head1 DESCRIPTION L and L are TEH BEST FRENDS, but if L isn't there