blob: 31582c493425958d531d57ea7e6d74e0b9938c7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#-*- perl -*-
#
# Copyright (C) 2000-2001 Ken'ichi Fukamachi
# All rights reserved.
#
# $FML: Debug.pm,v 1.4 2001/04/03 09:45:40 fukachan Exp $
#
package FML::Debug;
=head1 NAME
FML::Debug -- debug utilities
=head1 SYNOPSIS
use FML::Debug;
FML::Debug->show_structure( $variable );
=head1 METHODS
=head2 C<show_structure($x)>
It shows the data structure for the given variable C<$x>.
It is just a wrapper for L<Data::Dumper>.
=cut
# Descriptions: constructor
# Arguments: $self $args
# Side Effects: none
# Return Value: none
sub new
{
my ($self, $args) = @_;
my ($type) = ref($self) || $self;
my $me = {};
bless $me, $self,
}
# Descriptions: dump the target data structure
# Arguments: $self $target
# Side Effects: none
# Return Value: none
sub show_structure
{
my ($self, $target) = @_;
use Data::Dumper;
print Dumper( $target );
}
1;
|