[Chicago-talk] my my if nothing

Randal L. Schwartz merlyn at stonehenge.com
Wed May 5 14:15:01 CDT 2004

>>>>> "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.

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

More information about the Chicago-talk mailing list