summaryrefslogtreecommitdiffstats
path: root/lib/Net/Termcast.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Net/Termcast.pm')
-rw-r--r--lib/Net/Termcast.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Net/Termcast.pm b/lib/Net/Termcast.pm
index 57bd6ae..eb115bb 100644
--- a/lib/Net/Termcast.pm
+++ b/lib/Net/Termcast.pm
@@ -106,9 +106,7 @@ sub select_session {
sub screen_rows {
my $self = shift;
$self->_get_screen;
- my @rows;
- push @rows, $self->_vt->row_plaintext($_) for 1..$self->rows;
- return @rows;
+ return map { $self->_vt->row_plaintext($_) } 1..$self->rows;
}
sub screen {