Subject: | layer with option |
Date: | Sat, 15 Dec 2012 11:36:20 +1100 |
To: | bug-Perl6-Slurp [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With Perl6::Slurp 0.051000 and recent debian i386 perl 5.14.2, running
use Perl6::Slurp 'slurp';
my $str = slurp '<:gzip(auto)', '/etc/hosts';
dies with
Can't open ':gzip(auto)': No such file or directory at layer-option.pl line 2
where I hoped that it would take ":gzip(auto)" to be a layer name.
I see a layer with no options like "<:gzip" works, as does putting it in
an arrayref ['gzip(auto)'=>1]. Perhaps the string form could accept
options on the layer too, it that would be perl6-ish style.
I struck this trying <:gzip(auto) to read a mixture of gzipped and plain
files.
--
At the Sydney Olympic stadium workmen shortened the 100m track to 94m to
make room for a communications pit. Someone only noticed before the
Games when an under-16 schoolboys meet broke the Commonwealth record.