in reply to Re^2: Can't import constants in multiple namespaces
in thread Can't import constants in multiple namespaces

You need to quote MYMOD_DEFAULT for @EXPORT_OK

@EXPORT_OK = ( 'MYMOD_DEFAULT' ); # or qw( MYMOD_DEFAULT )

Also, when you "use" it, you'll need to ask for it, as you put it in EXPORT_OK, not EXPORT.

use MyMod qw( MYMOD_DEFAULT );

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.