Yes - use Data::Dumper::Names:
use Data::Dumper::Names; my $foo = 3; my @bar = qw/this that/; warn Dumper($foo, \@bar); __END__ output: $foo = 3; @bar = ( 'this', 'that' );
In reply to Re: how to print out a variable name and its value
by Corion
in thread how to print out a variable name and its value
by perlfan99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |