Elaine -Hfb- Ashton wrote: > I always found the local, my, our mess pretty confusing and the best > explanation is MJD's "Coping with Scoping" > > http://perl.plover.com/FAQs/Namespaces.html > > Make good note of the text in red :)
Elaine, thanks a lot for MJD's article. There is a great difference before reading it and after :) In the example: <code> { my $seed = 1; sub my_rand { $seed = int(($seed * 1103515245 + 12345) / 65536) % 32768; return $seed; } } </code> , the function my_rand () is declared inside a block. Does that mean a function can be declared anywhere in the program (i.e. inside another function, loop or if block)? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]