Skip Menu |

This queue is for tickets about the Dios CPAN distribution.

Report information
The Basics
Id: 122798
Status: resolved
Priority: 0/
Queue: Dios

People
Owner: Nobody in particular
Requestors: felix.ostmann [...] gmail.com
Cc:
AdminCc:

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



Subject: Typed attributes with Match types are broken
$ perl -MDios -e 'class A { has Match[\d] $!B; }' Unquoted string "d" may clash with future reserved word at (eval 5) line 2. Scalar found where operator expected at (eval 5) line 2, near "] $!" (Missing operator before $!?) Bareword found where operator expected at (eval 5) line 2, near "$!B" (Missing operator before B?) Invalid class at -e line 1. Expected: class <class name> <bases> <block> but found: syntax error at -e line 1, near "] $!" Unmatched right curly bracket at -e line 1, at end of line syntax error at -e line 1, near "}}" Compilation failed at -e line 1. $ perl -MDios -e 'class A { has Match[ ccc ] $!B; }' Unquoted string "ccc" may clash with future reserved word at (eval 5) line 2. Scalar found where operator expected at (eval 5) line 2, near "] $!" (Missing operator before $!?) Bareword found where operator expected at (eval 5) line 2, near "$!B" (Missing operator before B?) Invalid class at -e line 1. Expected: class <class name> <bases> <block> but found: syntax error at -e line 1, near "] $!" Unmatched right curly bracket at -e line 1, at end of line syntax error at -e line 1, near "}}" Compilation failed at -e line 1. without whitespaces and nothing special it works: $ perl -MDios -e 'class A { has Match[ccc] $!B; }'
Subject: Re: [rt.cpan.org #122798] Typed attributes with Match types are broken
Date: Mon, 14 Aug 2017 13:43:59 +0200
To: bug-Dios [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Thanks again for the bug report Felix. Both issues are fixed in the latest release. Much appreciated! Damian