Skip to content

Commit

Permalink
0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed May 18, 2011
1 parent 9e121cb commit 0ce0dc6
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 14 deletions.
5 changes: 5 additions & 0 deletions Changes
@@ -1,4 +1,9 @@
---
version: 0.12
date: Wed May 18 15:18:27 EST 2011
changes:
- Use Module::Package
---
version: 0.11
date: Mon May 16 22:16:38 EST 2011
changes:
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
@@ -1,3 +1,3 @@
use inc::Package;
use inc::Module::Package;

requires 'PadWalker';
2 changes: 1 addition & 1 deletion README
@@ -1,5 +1,5 @@
NAME
lexicals - Create a hash of your 'my' variables
lexicals - Get a hash of your current 'my' variables

SYNOPSIS
use Template::Toolkit::Simple;
Expand Down
27 changes: 15 additions & 12 deletions lib/lexicals.pm
@@ -1,6 +1,6 @@
##
# name: lexicals
# abstract: Create a hash of your 'my' variables
# abstract: Get a hash of your current 'my' variables
# author: Ingy döt Net <ingy@ingy.net>
# license: perl
# copyright: 2011
Expand All @@ -12,7 +12,7 @@ package lexicals;
use 5.005008;
use strict;

our $VERSION = '0.11';
our $VERSION = '0.12';

use PadWalker;

Expand Down Expand Up @@ -69,14 +69,17 @@ returns the lexicals as a hash reference (in scalar or list context).
The C<lexicals> function only reports the lexical variables variables that
were defined before where it gets called.
=head1 DEBUGGING TRICK
=cut

This could be a handy idiom for debugging:
use XXX;
sub foo {
...
XXX lexicals; # See your lexicals in the nude.
...
}
##
# =head1 DEBUGGING TRICK
#
# This could be a handy idiom for debugging:
#
# use XXX;
#
# sub foo {
# ...
# XXX lexicals; # See your lexicals in the nude.
# ...
# }
2 changes: 2 additions & 0 deletions pkg/plugins.pl
Expand Up @@ -30,4 +30,6 @@
unless $INC{'Module/Install/Win32.pm'};
require Module::Install::WriteAll
unless $INC{'Module/Install/WriteAll.pm'};
require Module::Package
unless $INC{'Module/Package.pm'};
1;

0 comments on commit 0ce0dc6

Please sign in to comment.