in reply to How to do "use Mumble ':all' " ala CGI.pm

You could leave off the 'all' key at first, and then set it up with the values from %EXPORT_TAGS,

%EXPORT_TAGS = ( hdr_lens => [qw( LIS_TIF_HDR_LEN LIS_TIF_HDR_DATA_MAX LIS_PHY_HDR_LEN LIS_LR_HDR_LEN )], phyhdr_flags => [qw( . . . . )], lr_types => [qw( . . . . )], # . . . . ); $EXPORT_TAGS{'all'} = [map {@$_} values %EXPORT_TAGS];

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: How to do "use Mumble ':all' " ala CGI.pm
by shenme (Priest) on Sep 20, 2004 at 05:13 UTC
    Hmm, yes, but then I wouldn't be getting the same effect as CGI.pm aims for. Instead of every tag set (like the Exporter 5.8.x workarounds suggest), rather allowing you to specify just the most useful subset of all tag sets. Perhaps a better example from CGI.pm would be the ':standard' tag set.

      Ok, if you want to aggregate a few tags in a more general class, use a slice,

      $EXPORT_TAGS{'standard'} = [map {@$_} @EXPORT_TAGS{qw/the top tags/}];

      After Compline,
      Zaxo