END { print 'End of main.', $/; } use SomeModule; # ... __END__ End of SomeModule End of main