[Chicago-talk] my my if nothing
Greg Fast
gdf at speakeasy.net
Wed May 5 15:51:53 CDT 2004
On 05 May 2004 12:14:58 -0700, merlyn at stonehenge.com (Randal L. Schwartz) wrote:
> >>>>> "Greg" == Greg Fast <gdf at speakeasy.net> writes:
> Greg> { my $x;
> Greg> sub foo() {
> Greg> print $x++, "\n";
> Greg> }
> Greg> }
> Greg> foo() for (1..5);
>
> Greg> (Doesn't work under mod_perl, btw. But then, why are you doing it
> Greg> anyway? :)
>
> Huh? Works fine under mod_perl. Doesn't work under Apache::Registry,
> which is a hack, and should eventually be migrated away from.
Huh. Well, I guess I haven't tried it recently, but it always gave me
those "variable won't stay shared" problems back in the day.
(Also, the prototype on that sub was a brain fart.)
--
Greg Fast
http://cken.chi.groogroo.com/~gdf/
More information about the Chicago-talk
mailing list