develooper Front page | perl.perl5.porters | Postings from December 2008

Re: Proposal: Named parameters for 5.12

Thread Previous | Thread Next
From:
Johan Vromans
Date:
December 18, 2008 01:55
Subject:
Re: Proposal: Named parameters for 5.12
Message ID:
m2hc51959h.fsf@phoenix.squirrel.nl
Florian Ragwitz <rafl@debian.org> writes:

> http://search.cpan.org/~flora/signatures-0.02/lib/signatures.pm

Could this be enhanced to turn

   sub square ($num) : method { 

into

   sub square {
     my ($self, $num) = @_;
     
(Although I'd prefer "method square ($num){" )

-- Johan


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About