How to open a file handle on a string in Perl 6?
Clash Royale CLAN TAG #URR8PPP How to open a file handle on a string in Perl 6? In Perl 5, I can open a filehandle on string like this: open my $kfh, "<", $message->payload; I have a scenario that uses string as a filehandle and passes it to the open method: open my $fh = new IO::Zlib; open my $kfh, "<", $message->payload; if($fh->open($kfh, 'rb')){ print <$fh>; $fh->close; } where $message->payload is read from Kafka, and the content is a byte array. raiph had a similar question, but it didn't answer my question. $message->payload So I want to know how to open a filehandle on a string in Perl 6 like Perl 5 does? These documentation pages have no information on this: The documentation has a section about this under Input/Output. – callyalater Jul 18 at 17:22 ...