http://www.perlmonks.org?node_id=69904


in reply to Re: a flash of inspiration...
in thread Closing and re-opening the DATA Filehandle

Am I missing something here?

Is there any reason why you can't read in the data when the module is loaded, and assign it when you need to?!? ie:

package mod_name; { local $/; @mod_name::TableTemplate = map {chomp; hex} split ' ', <DATA>; close DATA; } my @Table = @mod_name::Table_Template;

Or am I missing something completely obvious ?!?

cLive ;-)