in reply to How to access multiple hash variables defined in a module

Here's a different way of handling @EXPORT_OK
package XYZ; use strict; use warnings; use Data::Dumper; require Exporter; our @ISA = qw(Exporter); our %EXPORT_TAGS = ( 'all' => [ qw( Hash1 Hash2 Hash3 ) ], ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );