Пакет perl-Devel-ArgNames: Информация
Исходный пакет: perl-Devel-ArgNames
Версия: 0.03-alt1
Собран: 22 сентября 2011 г. 17:37
Категория: Разработка/Perl
Сообщить об ошибке в пакетеЛицензия: 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