develooper Front page | perl.perl6.language | Postings from November 2001

RE: Quick question on subroutine declaration syntax

Thread Previous | Thread Next
From:
Brent Dax
Date:
November 7, 2001 17:13
Subject:
RE: Quick question on subroutine declaration syntax
Message ID:
FJELLKOPEAGHOOODKEDPMEHJCJAA.brentdax@cpan.org
Larry Wall:
# Note that the "sub" is standing in for &, so it'd have to be
#
#     my Dog sub hot {...}
#
# or
#
#     my Dog &hot {...}

What about package subs?

	our Dog sub hot {...}

seems just a bit verbose...

--Brent Dax
brentdax@cpan.org
Configure pumpking for Perl 6

When I take action, I’m not going to fire a $2 million missile at a $10
empty tent and hit a camel in the butt.
    --Dubya


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