Front page | perl.perl5.porters |
Postings from October 2004
Re: optimization idea
Thread Previous
|
Thread Next
From:
Dave Mitchell
Date:
October 25, 2004 13:38
Subject:
Re: optimization idea
Message ID:
20041025203808.GA5842@iabyn.com
On Mon, Oct 25, 2004 at 09:09:16PM +0200, Elizabeth Mattijsen wrote:
> Wouldn't you need to add taking a ref of the var, to invalidate this
> optimization? Specifically for this case:
>
> sub statename {
> my $name = 'david';
> ${\$name} = 'liz';
> return "hello, my name is $name";
> }
Then there's stuff like this, which you can't detect at compile ime:
sub statename {
my $name = 'david';
eval '$name = "liz"';
return "hello, my name is $name";
}
--
"Foul and greedy Dwarf - you have eaten the last candle."
-- "Hordes of the Things", BBC Radio.
Thread Previous
|
Thread Next