Skip Menu |
 

This queue is for tickets about the Data-Alias CPAN distribution.

Report information
The Basics
Id: 65217
Status: resolved
Priority: 0/
Queue: Data-Alias

People
Owner: Nobody in particular
Requestors: djerius [...] cpan.org
Cc:
AdminCc:

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



Download (untitled) / with headers
text/plain 309b
Perl 5.12 doesn't like the following alias syntax: use Data::Alias; alias { ($x, $y) = ($y, $x) }; I get the following error: Not enough arguments for Data::Alias::alias at da.pl line 2, near "" syntax error at da.pl line 2, near "" da.pl had compilation errors. Perl 5.10 is ok with it and runs normally.
Subject: D:A fails on alias{(...)=(...)}
Download (untitled) / with headers
text/plain 468b
Thanks for the report. Turns out there's a problem specifically with the content of an alias{} block starting with a paren. Presumably due to the lexer magic concerning parenthesised function parameter lists. Only affects Perl 5.11.2+: it's something I missed in the course of the big changes for that Perl version, due to it not being in the test suite. I've put a slightly-dodgy workaround into Data-Alias-1.13, now uploaded to CPAN. Hope that fixes it for you.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.