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

stupid optimization question



I apologize for the stupidity of this in advance-- its just something that I thought of in relation to mod_perl after starting a discussion on perlmonks about use constant vs sub(){} ...


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 ) {}
	}

?


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