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:
Darin McBride
Date:
July 7, 2012 21:48
Subject:
Re: [perl #113554] my() with empty list causes weird error
Message ID:
1631934.pUcg2EVrDH@naboo
On Sunday July 8 2012 6:42:58 AM Aristotle Pagaltzis wrote:
> Why would the last example here be the odd one out? What makes an empty
> list so abhorrent in the vicinity of `my` that unlike anywhere else in
> Perl, there it has to be forbidden?

Personal opinion, but "my ()" makes no semantic sense even if it makes 
syntactical sense.
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