aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtgrecv2
1 files changed, 1 insertions, 1 deletions
diff --git a/tgrecv b/tgrecv
index 8456401..f722cb9 100755
--- a/tgrecv
+++ b/tgrecv
@@ -59,7 +59,7 @@ if ($AUTO_OFFSET && ! $OFFSET) {
my $api = TgLib::Api->new($TOKEN, $logger);
my $updates = $api->get_updates($TIMEOUT, $OFFSET);
-my $out = STDOUT;
+my $out = *STDOUT;
if ($OUTPUT) {
open($out, ">", $OUTPUT) or die "Cannot open $OUTPUT for writing: $!";
}