Front page | perl.perl6.language |
Postings from December 2004
Re: state vs my
Thread Previous
|
Thread Next
From:
Brent 'Dax' Royal-Gordon
Date:
December 3, 2004 23:36
Subject:
Re: state vs my
Message ID:
b8b9a5110412032336744f04c1@mail.gmail.com
Larry Wall <larry@wall.org> wrote:
> So optimizing to a state variable won't necessarily help your loop
> overhead, but it could help your subroutine overhead, at least in Perl
> 5, if Perl 5 had state variables. Best you can do in Perl 5 is an
> "our" variable with an obscure name.
my $x if 0;
I know it's *going* away, but it hasn't *gone* away yet.
--
Brent 'Dax' Royal-Gordon <brent@brentdax.com>
Perl and Parrot hacker
"I might be an idiot, but not a stupid one."
--c.l.p.misc (name omitted to protect the foolish)
Thread Previous
|
Thread Next