Skip Menu |

This queue is for tickets about the Perl6-Slurp CPAN distribution.

Report information
The Basics
Id: 81990
Status: open
Priority: 0/
Queue: Perl6-Slurp

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
Subject: Re: [rt.cpan.org #81990] layer with option
Date: Wed, 19 Dec 2012 16:07:31 +1100
To: bug-Perl6-Slurp [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Thanks, Kevin. The next release will support parenthesized options. Damian