in reply to Re^2: __DATA__ used in BEGIN
in thread __DATA__ used in BEGIN

Why can you not just:

my %hugeHash = eval do {local $/; <DATA>}; ... __DATA__ exception1 => 'wibble', ...

to load your hash from the data section? You could make it a whole lot more robust, but if you want quick and dirty that gets you going.


Perl is environmentally friendly - it saves trees