I think you've made a closure... my $subref; { my $a = "hi!" $subref = sub { print "$a\n" }; $a = "huh?"; } &$subref; #prints "huh?" Is $r->pnotes really making a subref? I'm only starting to get familiar with Apache.xs but I can tell that notes is implemented directly on top of an Apache::Table while pnotes involves much more stuff that I can't speak about at this time.
- Unexpected pnotes() behavior Dan Rench
- Re: Unexpected pnotes() behavior Doug MacEachern
- JoshNarins