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

Owner: Nobody in particular
Requestors: djerius [...]

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 line 2, near "" syntax error at line 2, near "" 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 infrastructure.

Please report any issues with to