Rafael Garcia-Suarez wrote: >>>Yes, that would be a good idea : something like "assertion never activated at ..." >> >>This would require to take another bit from PL_hints, is that ok? > > Another hint ? Why ? to know if in the current scope "use assertions" has been seen before. A global is not enough because when a new file is 'require'd the hints are set again to 0 and so assertions should be declared again. i.e. ___file_my_script___________ #! perl use assertions 'foo'; use MyPackage; ... ___file_MyPackage.pm______________ package MyPackage; my_assertion("hello") # should print a warning ... Bye, - SalvaThread Previous | Thread Next