Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created September 5, 2017 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/a999df1f89d24cdc6ffac42ca55be806 to your computer and use it in GitHub Desktop.
Save jnthn/a999df1f89d24cdc6ffac42ca55be806 to your computer and use it in GitHub Desktop.
diff --git a/lib/Text/CSV.pm b/lib/Text/CSV.pm
index 7218b26..31b3dc8 100644
--- a/lib/Text/CSV.pm
+++ b/lib/Text/CSV.pm
@@ -1760,6 +1760,7 @@ class Text::CSV {
}
my IO::Handle $io-out;
+ LEAVE if $out ~~ Str { .close with $io-out }
my Str $tmpfn;
# out
# Array - return AoA (default)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment