[Bps-public-commit] r12402 - in Carp-REPL: lib/Carp

sartak at bestpractical.com sartak at bestpractical.com
Fri May 16 08:55:51 EDT 2008


Author: sartak
Date: Fri May 16 08:55:50 2008
New Revision: 12402

Modified:
   Carp-REPL/   (props changed)
   Carp-REPL/Changes
   Carp-REPL/lib/Carp/REPL.pm

Log:
 r56020 at onn:  sartak | 2008-05-16 08:53:35 -0400
 Allow importing of 'repl'


Modified: Carp-REPL/Changes
==============================================================================
--- Carp-REPL/Changes	(original)
+++ Carp-REPL/Changes	Fri May 16 08:55:50 2008
@@ -1,9 +1,13 @@
 Revision history for Carp-REPL
 
 0.12
+        :l(ist) command for printing source code
+        Rename Devel::REPL::Plugin::LexEnvCarp to
+            Devel::REPL::Plugin::Carp::REPL
+        Allow importing of the 'repl' procedure
 
 0.11    Thu Sep 20 21:43:56 2007
-        Devel::REPL configuration is now applied        
+        Devel::REPL configuration is now applied
 
 0.10    Tue Sep 11 20:07:10 2007
         :e command to display the current environment

Modified: Carp-REPL/lib/Carp/REPL.pm
==============================================================================
--- Carp-REPL/lib/Carp/REPL.pm	(original)
+++ Carp-REPL/lib/Carp/REPL.pm	Fri May 16 08:55:50 2008
@@ -4,6 +4,9 @@
 use 5.6.0;
 our $VERSION = '0.12';
 
+use base 'Exporter';
+our @EXPORT_OK = 'repl';
+
 our $noprofile = 0;
 
 sub import {
@@ -142,14 +145,13 @@
 state of things without having to throw a fake error. You can also change any
 variables and those changes will be seen by the rest of your program.
 
-    use Carp::REPL;
+    use Carp::REPL 'repl';
 
-    sub involved_calculation
-    {
+    sub involved_calculation {
         # ...
         $d = maybe_zero();
         # ...
-        Carp::REPL::repl; # $d = 1
+        repl(); # $d = 1
         $sum += $n / $d;
         # ...
     }
@@ -224,41 +226,9 @@
 
 =head1 BUGS
 
-No known bugs at this point. To expect that to stay true is laughably naive. :)
-
 Please report any bugs or feature requests to
 C<bug-carp-repl at rt.cpan.org>, or through the web interface at
 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Carp-REPL>.
-I will be notified, and then you'll automatically be notified of progress on
-your bug as I make changes.
-
-=head1 SUPPORT
-
-You can find documentation for this module with the perldoc command.
-
-    perldoc Carp::REPL
-
-You can also look for information at:
-
-=over 4
-
-=item * AnnoCPAN: Annotated CPAN documentation
-
-L<http://annocpan.org/dist/Carp-REPL>
-
-=item * CPAN Ratings
-
-L<http://cpanratings.perl.org/d/Carp-REPL>
-
-=item * RT: CPAN's request tracker
-
-L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Carp-REPL>
-
-=item * Search CPAN
-
-L<http://search.cpan.org/dist/Carp-REPL>
-
-=back
 
 =head1 ACKNOWLEDGEMENTS
 



More information about the Bps-public-commit mailing list