blob: 1d17c3a57b34436fde1b67dca9afdc1c22dad33e (
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
|
#-*- perl -*-
#
# Copyright (C) 2000-2001 Ken'ichi Fukamachi
# All rights reserved.
#
# $FML$
#
package FML::Debug;
=head1 NAME
FML::Debug -- debug utilities
=head1 SYNOPSIS
use FML::Debug;
FML::Debug->show_structure( $variable );
=head1 METHOD
=item show_structure()
It shows the data structure for the given variable.
=cut
sub new
{
my ($self) = @_;
my ($type) = ref($self) || $self;
my $me = {};
bless $me, $self,
}
sub show_structure
{
my ($class, $ref) = @_;
use Data::Dumper;
print Dumper( $ref );
}
1;
|