Re: ping TImo: buf as a print

2017-07-09 Thread Timo Paulssen
If you want to look at what the Buf contains, you need to "say $image" or "print $image.gist" or "print $image.perl". If you want to put it into a file, use spurt (which can accept a Buf and realize it's supposed to write out binary), or use the write method on a file handle (best opened with :bin

Re: ping TImo: buf as a print

2017-07-09 Thread Elizabeth Mattijsen
> On 9 Jul 2017, at 07:32, ToddAndMargo wrote: > > On 07/08/2017 02:58 AM, timo wrote: >> @ToddAndMargo here's how to create an >> email with attachments: >> my $image = "P5\n64 64\n255\n".encode("utf8") ~ Buf[int8].new( do for >> -32..^32 X -32..^32 -> ($x,

ping TImo: buf as a print

2017-07-08 Thread ToddAndMargo
On 07/08/2017 02:58 AM, timo wrote: @ToddAndMargo here's how to create an email with attachments: my $image = "P5\n64 64\n255\n".encode("utf8") ~ Buf[int8].new( do for -32..^32 X -32..^32 -> ($x, $y) { 255 - (sqrt($x ** 2 + $y ** 2) * 4 % 255).ceiling });