Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Thursday November 27, 2008
10:02 AM

Test::Most 0.20_02

[ #37960 ]

I've released a new developer version of Test::Most, 0.20_02. This offers the feature I was promising a few days ago:

use Test::Most 'no_plan';

ok 1;
my ( $foo, @bar ) = qw( this is a list );
show $foo, \@bar;
# $foo = 'this';
# @bar = (
#          'is',
#          'a',
#          'list'
#        );

Yup. You get variable names now. If you do testing, let me know if you like this.

It only displays lexicals (I haven't figured out the best way of getting the names of globals yet) and won't show 'containers', something Data::Dumper::Simple handles quite nicely:

$ perl -MData::Dumper::Simple -le 'print Dumper($ENV{PAGER})'
$ENV{PAGER} = 'less';

I suppose I could try an option where you specifically ask for Data::Dumper::Simple behavior instead of Data::Dumper::Names, but the former uses a source filter and the latter does not. That's why I want Perl 6 now. I can do this much more easily, no filters required :/

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.