Output:use constant DEBUG => 1; sub debug { return unless DEBUG; my $ref = shift; print STDERR Dumper $ref; } my $foo = 'foo'; my @bar = ( qw/ foo bar baz / ); debug( \$foo ); debug( \@bar );
$VAR1 = \'foo'; $VAR1 = [ 'foo', 'bar', 'baz' ];
In reply to Re^3: debug statements
by duckyd
in thread debug statements
by koknat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |