laziness, impatience, and hubris | |
PerlMonks |
Re: Perl6: unexpected exception when printing to a writable file handleby stevieb (Canon) |
on May 28, 2016 at 14:54 UTC ( [id://1164396]=note: print w/replies, xml ) | Need Help?? |
Another case of Rubber Duck Debugging... (and not reading enough docs). From the spurt() docs:
So I have to do this:
...or, skip opening the file entirely, and pass the filename to spurt() directly:
So I'll re-review the docs, as the example in my OP appears to be incorrect (I'll submit a patch if this turns out to be the case after more testing).
In Section
Seekers of Perl Wisdom
|
|