in reply to Re^2: how to write a module
in thread how to write a module

Case 1 doesn't work because @EXPORT is empty. The symbols in @EXPORT_OK are available for importing but they are not automatically imported.