could someone please post a reference example of Perl6::Slurp with the DATA filehandle?
use strict; use Perl6::Slurp; my $contents = slurp(*DATA); __END__ line 1 line 2
fails.
A reference to a typeglob is a suitable argument to Perl6::Slurp::slurp, as the perldoc demonstrates.
Perl6::Slurp::slurp
use Perl6::Slurp; $hw = slurp \*DATA; print $hw; __DATA__ hello world