develooper Front page | perl.perl5.porters | Postings from August 2001

private bar foo sub name {}

Thread Next
From:
Arthur Bergman
Date:
August 4, 2001 05:29
Subject:
private bar foo sub name {}
Message ID:
B791B741.2C34%arthur@contiller.se
Schwern wanted named subs to return a coderef, this was shot down by
compatibility police, why can't we make it so that if you do the following

perl -le 'sub bar(&) { print $_[0]} bar sub foo { print yeah}'

so if the sub that is proceding sub has that kind of prototype sub would
return the coderef
-- 
Arthur


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