Changeset 2399 for trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Cli/Context.pm
- Timestamp:
- 06/13/20 18:55:42 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Cli/Context.pm
r2397 r2399 37 37 has La => ( is => 'ro' ); 38 38 has Out => ( is => 'ro' ); 39 has TempOut => ( is => 'rw' ); 39 40 has Interractive => ( is => 'rw', isa => 'Bool', default => 1 ); 40 41 … … 69 70 sub print { 70 71 my ( $self, @args ) = @_; 71 my $out = $self-> Out;72 my $out = $self->TempOut || $self->Out; 72 73 73 74 print $out @args; … … 80 81 sub printf { 81 82 my ( $self, $str, @args ) = @_; 82 my $out = $self-> Out;83 my $out = $self->TempOut || $self->Out; 83 84 84 85 printf $out $str, @args;
Note: See TracChangeset
for help on using the changeset viewer.