Michael G Schwern <schwern@pobox.com> writes: > I'm stumped. I want to know how many times a certain function is > called inside a lexical block without actually running that block of > code. For example: > > foo { > bar(); > bar(); > bar(); > }; > > Assuming foo() is prototyped (&), how could it know that bar() is > called three times in that block without actually running it? > > I'd like to avoid a filter. Maybe reading the opcodes with B? Isn't this a halting problem issue? foo { bar() if bar() && bar() }; How many times does bar get run? -- Piers ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe