Group :: Development/Perl
RPM: perl-Devel-ArgNames
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Current version: 0.03-alt1
Build date: 22 september 2011, 13:37 ( 653.0 weeks ago )
Size: 6335 b
Home page: http://search.cpan.org/CPAN/authors/id/N/NU/NUF…
License: Artistic
Summary: Figure out the names of variables passed into subroutines
Description:
List of contributors List of rpms provided by this srpm:
ACL:
Build date: 22 september 2011, 13:37 ( 653.0 weeks ago )
Size: 6335 b
Home page: http://search.cpan.org/CPAN/authors/id/N/NU/NUF…
License: Artistic
Summary: Figure out the names of variables passed into subroutines
Description:
When print-debugging code, you will often find yourself going:
print "\$foo is $foo, \$bar is $bar"
With this module, you can write a reusable subroutine easily:
sub my_print_vars {
my %vars;
@vars{arg_names()} = @_;
foreach my $var ( keys %vars ) {
warn "$var is $vars{$var}\n";
}
}
my_print_vars($foo, $bar);
This module doesn't provide dumping facilities because there are too many to
choose from. This is a DIY kit ;-)
Current maintainer: Igor Vlasenko print "\$foo is $foo, \$bar is $bar"
With this module, you can write a reusable subroutine easily:
sub my_print_vars {
my %vars;
@vars{arg_names()} = @_;
foreach my $var ( keys %vars ) {
warn "$var is $vars{$var}\n";
}
}
my_print_vars($foo, $bar);
This module doesn't provide dumping facilities because there are too many to
choose from. This is a DIY kit ;-)
List of contributors List of rpms provided by this srpm:
- perl-Devel-ArgNames