sub foo { print "in sub foo\n"; } sub bar { print "in sub bar\n"; $^P -= 0x40; } foo(); $^P -= 0x40; foo(); $^P += 0x40; bar(); $^P += 0x40;