in reply to Order of END blocks

Define main's END block before using the module to reverse their order,

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

After Compline,
Zaxo