Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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