in reply to Re^6: Is it possible to create a sub exclusive to a sub? (nasty memory leak)
in thread Is it possible to create a sub exclusive to a sub?

So, if I had something like:
package main; my $foo = 1; sub foobar { $foo++; }

Does that make foobar() a closure?

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

  • Comment on Re^7: Is it possible to create a sub exclusive to a sub? (nasty memory leak)
  • Download Code

Replies are listed 'Best First'.
Re^8: Is it possible to create a sub exclusive to a sub? (nasty memory leak)
by ihb (Deacon) on Sep 19, 2004 at 21:27 UTC

    Yes.

    ihb

    Read argumentation in its context!