Skip Menu |

This queue is for tickets about the Babble CPAN distribution.

Report information
The Basics
Id: 132728
Status: new
Priority: 0/
Queue: Babble

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

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



Subject: empty signatures '()' result in illegal syntax:
A signature which indicates no arguments are expected, e.g. sub() {} translates into illegal syntax under perl 5.10.1: % echo 'sub() { }' | perl -MBabble::Filter=::CoreSignatures -0777 -pe babble sub { my () = @_; } % perl -V:version version='5.10.1'; % perl -e 'sub { my () = @_; }' Can't declare stub in "my" at -e line 1, near ") =" Execution of -e aborted due to compilation errors.
On Thu May 28 15:41:49 2020, DJERIUS wrote: Show quoted text
> A signature which indicates no arguments are expected, e.g. > > sub() {} > > translates into illegal syntax under perl 5.10.1: > > > % echo 'sub() { }' | perl -MBabble::Filter=::CoreSignatures -0777 -pe > babble > sub { my () = @_; } > > % perl -V:version > version='5.10.1'; > > % perl -e 'sub { my () = @_; }' > Can't declare stub in "my" at -e line 1, near ") =" > Execution of -e aborted due to compilation errors.
see https://github.com/shadow-dot-cat/Babble/pull/2