Oh so you say that's indeed a bug in my code. That's a relief. Thanks!

As I can see I had some $file.IO.slurp and some of the slurp-rest ones.

What is the difference between $file.IO.slurp and slurp($file) ?
Is the latter just an alias for the former?

Gabor


On Sat, Mar 25, 2017 at 4:54 PM, Timo Paulssen <t...@wakelift.de> wrote:
> i highly suggest you slurp instead of open + slurp-rest, because that
> will automatically close the file for you, too.
>
> other than that, you can pass :close to the slurp-rest method and it'll
> also close the file.
>
> if you're not closing the files you're opening, you'll be relying on the
> garbage collector to do file handle closing for you, which is
> nondeterministic and a bad idea in general.
>
> HTH
>   - Timo

Reply via email to