Skip Menu |
 

This queue is for tickets about the Devel-Declare CPAN distribution.

Report information
The Basics
Id: 39515
Status: rejected
Priority: 0/
Queue: Devel-Declare

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

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



Subject: Anonymous methods without semicolon
Download (untitled) / with headers
text/plain 458b
I was surprised when anonymous methods worked! But they need a semicolon at the end. It would be nice if that wasn't necessary. Here's a test. #!/usr/bin/perl -w use strict; use warnings; use Test::More 'no_plan'; { package Stuff; use Test::More; use Method::Signatures; method echo($arg) { return $arg } my $method = method ($arg) { return $self->echo($arg) } is( Stuff->$method("foo"), "foo" ); }
Download (untitled) / with headers
text/plain 216b
On Mon Sep 22 13:10:28 2008, MSCHWERN wrote: Show quoted text
> I was surprised when anonymous methods worked! But they need a > semicolon at the end.
Of course they need a semicolon at the end! Nevermind, brain fart. Close this.


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.