use Data::Dumper; use Log::Log4perl qw(:easy); Log::Log4perl->easy_init($DEBUG); DEBUG "fields: " . Dumper(\@fields);