develooper Front page | perl.documentation | Postings from July 2011

new package syntax, where do I return true?

Thread Next
From:
Caleb Cushing
Date:
July 1, 2011 21:00
Subject:
new package syntax, where do I return true?
Message ID:
BANLkTikBYCOVX60JyEJNh27ETNYODUXT=w@mail.gmail.com
Having a little debate over this on a Perl::Critic ticket. I'm not
sure anyone is sure and the docs don't say.

https://rt.cpan.org/Ticket/Display.html?id=69234


is it package foo { ... 1; }  or package foo { ... }; 1; ? or what?
and is it possible this could get clarified in the next edition of the
docs?
-- 
Caleb Cushing

http://xenoterracide.com

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