develooper Front page | perl.perl5.porters | Postings from July 2012

Re: [perl #113554] my() with empty list causes weird error

Thread Previous | Thread Next
From:
ilmari
Date:
July 9, 2012 07:26
Subject:
Re: [perl #113554] my() with empty list causes weird error
Message ID:
d8jobnproyg.fsf@dalvik.ping.uio.no
Aristotle Pagaltzis <pagaltzis@gmx.de> writes:

> there is practically nowhere that writing `()` is ever sensible in
> Perl (discounting the use of parens to call a sub when not passing
> arguments; and in fact they are only required for method calls).

o, they aren't. C<< $flark->fleem >> is a perfectly valid method call.

-- 
ilmari
"A disappointingly low fraction of the human race is,
 at any given time, on fire." - Stig Sandbeck Mathisen


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