diff options
author | Guillermo Ramos | 2020-11-27 11:32:41 +0100 |
---|---|---|
committer | Guillermo Ramos | 2020-11-27 11:32:41 +0100 |
commit | 6a61e9bd333f58aeea401bf6958446e9878df30d (patch) | |
tree | c30de4f31034506384d0360d6577a043e9f9042d | |
parent | 0deb9dbd3897e81fb0b7287af9b8322e0d5e5263 (diff) | |
download | tgutils-6a61e9bd333f58aeea401bf6958446e9878df30d.tar.gz |
Fix wrong descriptor syntax in tgrecv
-rwxr-xr-x | tgrecv | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: $!"; } |