9 $_output = _output->new(@_);
16 my $name = $output::AUTOLOAD;
17 $name =~ s/^.*::(.[^:]*)$/$1/;
19 return $_output->$name(@_);
28 my $class = ref($proto) || $proto;
30 bless ($self, $class);
32 my $progress = \${$self->{PROGRESS}};
33 my $last_progress = \${$self->{LAST_PROGRESS}};
34 my $progress_count = \${$self->{PROGRESS_COUNT}};
35 my $prefix = \${$self->{PREFIX}};
48 my $progress = \${$self->{PROGRESS}};
49 my $last_progress = \${$self->{LAST_PROGRESS}};
50 my $progress_count = \${$self->{PROGRESS_COUNT}};
54 if($$progress_count > 0 && $$progress) {
55 print STDERR $$progress;
56 $$last_progress = $$progress;
62 my $progress = \${$self->{PROGRESS}};
63 my $last_progress = \${$self->{LAST_PROGRESS}};
64 my $progress_count = \${$self->{PROGRESS_COUNT}};
70 for (1..length($$last_progress)) {
73 print STDERR $message;
74 undef $$last_progress;
80 my $progress = \${$self->{PROGRESS}};
81 my $last_progress = \${$self->{LAST_PROGRESS}};
86 for (1..length($$last_progress)) {
90 my $diff = length($$last_progress)-length($$progress);
100 print STDERR $prefix . $$progress . $suffix;
101 $$last_progress = $$progress;
106 my $progress = \${$self->{PROGRESS}};
110 $self->update_progress;
115 my $prefix = \${$self->{PREFIX}};
125 my $prefix = \${$self->{PREFIX}};
127 $self->hide_progress;
128 print $$prefix . $message;
129 $self->show_progress;