2 |
## $Id$ |
## $Id$ |
3 |
## -------------------------------------------------------------------------------- |
## -------------------------------------------------------------------------------- |
4 |
## $Log$ |
## $Log$ |
5 |
|
## Revision 1.8 2004/10/07 14:06:46 jonen |
6 |
|
## minor changes, comment-out debug dumper |
7 |
|
## |
8 |
|
## Revision 1.7 2004/07/07 03:13:43 joko |
9 |
|
## minor fix for "sub isEmpty" |
10 |
|
## |
11 |
## Revision 1.6 2004/05/12 13:53:19 jonen |
## Revision 1.6 2004/05/12 13:53:19 jonen |
12 |
## + bugfix related to declaration of arrays, |
## + bugfix related to declaration of arrays, |
13 |
## solved error: 'Bizarre copy of ARRAY in aassign at...' |
## solved error: 'Bizarre copy of ARRAY in aassign at...' |
99 |
|
|
100 |
#print "isEmpty is parsing variable ( ref $ref reftype $reftype )", "\n"; |
#print "isEmpty is parsing variable ( ref $ref reftype $reftype )", "\n"; |
101 |
|
|
102 |
#print Dumper($var); |
#print Dumper($ref); |
103 |
|
|
104 |
my $found; |
my $found; |
105 |
|
|
162 |
return $empty; |
return $empty; |
163 |
#return 0; |
#return 0; |
164 |
|
|
165 |
} else { |
# check for empty string |
166 |
|
} elsif (defined $var) { |
167 |
$found = 1; |
$found = 1; |
168 |
return 0 if defined $var; |
return 0 if $var ne ''; |
169 |
} |
} |
170 |
|
|
171 |
if (!$found) { |
if (!$found) { |
172 |
print "isEmpty could not parse variable ( ref $ref reftype $reftype )", "\n"; |
#print "isEmpty could not parse variable ( ref $ref reftype $reftype )", "\n"; |
173 |
} |
} |
174 |
|
|
175 |
#print "EMPTY!!!", "\n"; |
#print "EMPTY!!!", "\n"; |