diff options
| author | fukachan <fukachan> | 2002-02-01 12:03:55 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-02-01 12:03:55 +0000 |
| commit | a176a2ad4ac5fd35a3a056dd3828c0dbb1da0e6d (patch) | |
| tree | c06f02bd93f73f40c2cafff8c461d73731b15b6d /fml/lib/IO/Adapter.pm | |
| parent | eec3fb6d6aa9ffe509abbab89f304f450295d860 (diff) | |
| download | fml8-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/IO/Adapter.pm')
| -rw-r--r-- | fml/lib/IO/Adapter.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fml/lib/IO/Adapter.pm b/fml/lib/IO/Adapter.pm index 58b6cde1..03b03444 100644 --- a/fml/lib/IO/Adapter.pm +++ b/fml/lib/IO/Adapter.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: Adapter.pm,v 1.13 2002/01/27 09:25:23 fukachan Exp $ +# $FML: Adapter.pm,v 1.14 2002/01/27 13:11:57 fukachan Exp $ # package IO::Adapter; @@ -13,6 +13,8 @@ use strict; use Carp; use IO::Adapter::ErrorStatus qw(error_set error error_clear); +my $debug = 0; + # prepare error_set() is called @ISA = qw(IO::Adapter::ErrorStatus); @@ -193,7 +195,7 @@ sub new @ORIG_ISA = @ISA unless $FirstTime++; @ISA = ($pkg, @ORIG_ISA); - printf STDERR "%-20s %s\n", "IO::Adapter::ISA:", "@ISA" if $ENV{'debug'}; + printf STDERR "%-20s %s\n", "IO::Adapter::ISA:", "@ISA" if $debug; eval qq{ require $pkg; $pkg->import();}; unless ($@) { $pkg->configure($me, $args) if $pkg->can('configure'); |
