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

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

Thread Previous | Thread Next
July 9, 2012 07:26
Re: [perl #113554] my() with empty list causes weird error
Message ID:
Aristotle Pagaltzis <> 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.

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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About