summaryrefslogtreecommitdiff
path: root/fml/lib/File
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-02-01 12:03:55 +0000
committerfukachan <fukachan>2002-02-01 12:03:55 +0000
commita176a2ad4ac5fd35a3a056dd3828c0dbb1da0e6d (patch)
treec06f02bd93f73f40c2cafff8c461d73731b15b6d /fml/lib/File
parenteec3fb6d6aa9ffe509abbab89f304f450295d860 (diff)
downloadfml8-subdir-base.tar.gz
fml8-subdir-base.tar.bz2
fml8-subdir-base.zip
remove $ENV{debug} based toggle flagsubdir-base
Diffstat (limited to 'fml/lib/File')
-rw-r--r--fml/lib/File/Sequence.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/fml/lib/File/Sequence.pm b/fml/lib/File/Sequence.pm
index 656f63e7..703bc7d9 100644
--- a/fml/lib/File/Sequence.pm
+++ b/fml/lib/File/Sequence.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Sequence.pm,v 1.16 2002/01/13 13:35:25 fukachan Exp $
+# $FML: Sequence.pm,v 1.17 2002/01/27 08:28:11 fukachan Exp $
#
package File::Sequence;
@@ -13,6 +13,8 @@ use vars qw(@ISA @EXPORT @EXPORT_OK);
use Carp;
use ErrorStatus qw(error_set error error_clear);
+my $debug = 0;
+
=head1 NAME
File::Sequence - maintain the sequence number
@@ -248,19 +250,19 @@ sub _search_max_id_from_bottom
my $hash = $args->{ hash };
($pebot, $v) = each %$hash;
- print STDERR "0. ", $pebot, "\n" if defined $ENV{'debug'};
+ print STDERR "0. ", $pebot, "\n" if $debug;
PEBOT_SEARCH:
while (1) {
last PEBOT_SEARCH unless defined $hash->{ $pebot + $unit };
$pebot += $unit;
- print STDERR "1. ", $pebot, "\n" if defined $ENV{'debug'};
+ print STDERR "1. ", $pebot, "\n" if $debug;
}
# increment by 1.
do {
$pebot++;
- print STDERR "2. ", $pebot, "\n" if defined $ENV{'debug'};
+ print STDERR "2. ", $pebot, "\n" if $debug;
} while (defined $hash->{ $pebot + 1 });
return $pebot;