[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stupid optimization question


On 5/17/07, Jonathan Vanasco <suppressed> wrote:
does anyone know if there is a memory/other difference under mod_perl
for

        sub a {
                my      @items= qw| 1 2 3 |;
                foreach my $a ( @items ) {}
        }

vs

        my      @_b_items= qw| 1 2 3 |;
        sub b {
                foreach my $b ( @ _b_items ) {}
        }

Aside from the scoping difference, my guess is no.  Shouldn't be hard
to test is you're really curious.

- Perrin


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.