Пакет perl-Devel-ArgNames: Информация
Бинарный пакет: perl-Devel-ArgNames
Версия: 0.03-alt1
Архитектура: noarch
Собран: 22 сентября 2011 г. 17:37
Исходный пакет: perl-Devel-ArgNames
Категория: Разработка/Perl
Сообщить об ошибке в пакетеЗагрузка: perl-Devel-ArgNames-0.03-alt1.noarch.rpm
Лицензия: Artistic
О пакете: Figure out the names of variables passed into subroutines
Описание:
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 ;-)Сопровождающий: Igor Vlasenko